/// <summary> /// Initializes a new instance of the <see cref="Ptr32Instrument"/> class. /// </summary> /// <param name="detector">The detector.</param> public Ptr32Instrument(Detector detector) : base(detector) { LMMMConfig lm = ((DetectorDefs.LMConnectionInfo)(detector.Id.FullConnInfo)).DeviceConfig; m_setvoltage = ((lm.LEDs == 2) || (lm.LEDs == 0)) ? false : true; m_voltage = (int)detector.MultiplicityParams.SR.highVoltage; file = new PTRFilePair(); file.Log = NC.App.Loggers.Logger(LMLoggers.AppSection.Collect); MaxSetVoltageTime = TimeSpan.FromSeconds(((DetectorDefs.LMConnectionInfo)(detector.Id.FullConnInfo)).DeviceConfig.HVTimeout); VoltageTolerance = lm.LLD; }
public LMConnectionInfo(LMConnectionInfo src) : base(src) { if (src != null) { NetComm = new LMMMNetComm(src.NetComm); DeviceConfig = new LMMMConfig(src.DeviceConfig); } else { NetComm = new LMMMNetComm(); DeviceConfig = new LMMMConfig(); } Wait = NetComm.Wait; }
public LMConnectionInfo() : base() { NetComm = new LMMMNetComm(); DeviceConfig = new LMMMConfig(); }