示例#1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="idNo"></param>
 /// <param name="name"></param>
 /// <param name="chanNum"></param>
 /// <param name="path"></param>
 public CExtech7100(int idNo = 0, string name = "CExtech7400")
 {
     this._idNo     = idNo;
     this._name     = name;
     this._failStop = "0";
     com            = new COM.CSerialPort();
 }
示例#2
0
        public CChroma19032(int idNo, string name)
        {
            this._idNo = idNo;

            this._name = name;

            com = new CSerialPort(_idNo, _name, EDataType.ASCII格式);


            C_HPCode = new Dictionary <int, string>();
            C_HPCode.Add(112, "STOP");
            C_HPCode.Add(113, "USER STOP");
            C_HPCode.Add(114, "NO TEST");
            C_HPCode.Add(115, "TESTING");
            C_HPCode.Add(116, "PASS");
            C_HPCode.Add(17, "GB HIGH"); //GB
            C_HPCode.Add(33, "AC HIGH"); //AC
            C_HPCode.Add(49, "DC HIGH"); //DC
            C_HPCode.Add(65, "IR HIGH"); //IR
            C_HPCode.Add(18, "GB LOW");
            C_HPCode.Add(34, "AC LOW");
            C_HPCode.Add(50, "DC LOW");
            C_HPCode.Add(66, "IR LOW");
            C_HPCode.Add(35, "AC ARC");
            C_HPCode.Add(51, "DC ARC");
            C_HPCode.Add(36, "AC OCP");
            C_HPCode.Add(52, "DC OCP");
            C_HPCode.Add(68, "IR OCP");
            C_HPCode.Add(100, "OSC OCP");
            C_HPCode.Add(97, "SHORT FAIL");
            C_HPCode.Add(98, "OPEN FAIL");
            com = new COM.CSerialPort();
        }