示例#1
0
        private void InitInstruments()
        {
            strMsg = "正在进行设备连接操作,请稍等 . . .";
            ShowMsg(strMsg, true);
            try
            {
                if (DP832A.Init(cfg.DP832ACom))
                {
                    DP832A.SetOutput(DP832A.CHANNEL.CH3, false);
                    Thread.Sleep(100);
                    DP832A.SetOutput(DP832A.CHANNEL.CH2, false);
                    Thread.Sleep(100);
                    DP832A.SetOutput(DP832A.CHANNEL.CH1, false);
                    Thread.Sleep(100);

                    //设置过流保护
                    DP832A.SetProtection(DP832A.OPMODE.OCP, DP832A.CHANNEL.CH1, 0.4);
                    Thread.Sleep(50);
                    DP832A.SetProtection(DP832A.OPMODE.OVP, DP832A.CHANNEL.CH1, 3.5);
                    DP832A.SetProtection(DP832A.OPMODE.OCP, DP832A.CHANNEL.CH2, 1);
                    Thread.Sleep(50);
                    DP832A.SetProtection(DP832A.OPMODE.OVP, DP832A.CHANNEL.CH2, 3.5);
                }
                MS9740A        = new MS9740A(cfg.MS9740AGPIB);
                Inst_PAM4_Bert = new Inst_PAM4_Bert(cfg.BertCom);

                Inst_PAM4_Bert.remoteControl();
                TC720.Init(cfg.TC720Com);

                kesight_N1902D.Init();
                ShowMsg("设备连接已完成", true);
            }
            catch (Exception ex)
            {
                ShowMsg(ex.Message, false);
                return;
            }
        }
示例#2
0
 public Bert(string com)
 {
     Inst_PAM4_Bert.remoteControl();
     Inst_PAM4_Bert = new Inst_PAM4_Bert(com);
 }