Ejemplo n.º 1
0
 /// <summary>
 /// 设置串口参数
 /// </summary>
 /// <param name="p_objConfig"></param>
 public void SetConfigVO(clsLIS_Equip_ConfigVO p_objConfig)
 {
     if (p_objConfig != null)
     {
         if (SerialPort != null && SerialPort.IsOpen)
         {
             SerialPort.Close();
         }
         SerialPort = new clsSerialPortIO(p_objConfig);
         DeviceNO   = p_objConfig.strLIS_Instrument_NO;
         DeviceID   = p_objConfig.strLIS_Instrument_ID;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="p_objConfig"></param>
 public AU680_Duplex(clsLIS_Equip_ConfigVO p_objConfig)
     : this()
 {
     SerialPort = new clsSerialPortIO(p_objConfig);
     DeviceNO   = p_objConfig.strLIS_Instrument_NO;
 }