Example #1
0
        private void BTN_Temp_Click(object sender, EventArgs e)
        {
            JzhPower jzh = port as JzhPower;

            double current = Int32.Parse(TB_DbgCurrent.Text);

            int[]    chnl = new int[] { Int32.Parse(TB_DbgChnl.Text) };
            string[] str  = new string[40];
            for (int i = 0; i < str.Length; i++)
            {
                str[i] = "0";
            }
            for (int i = 0; i < chnl.Length; i++)
            {
                str[chnl[i] - 1] = "1";
            }

            jzh.SetCurrentChannels(current, str);
        }
Example #2
0
        private void BTN_DbgGetFwVer_Click(object sender, EventArgs e)
        {
            JzhPower jzh = port as JzhPower;

            TB_DbgGetFwVer.Text = "Fw:" + jzh.GetFwVer();
        }
Example #3
0
 public JzhTest(string testname, Iport port, int duration, int interval = 1000, bool logFile = false)
     : base(port, "Minute", duration, logFile)
 {
     mTestName = testname;
     mJzh      = port as JzhPower;
 }