コード例 #1
0
        /// <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;
        }
コード例 #2
0
 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;
 }
コード例 #3
0
 public LMConnectionInfo()
     : base()
 {
     NetComm      = new LMMMNetComm();
     DeviceConfig = new LMMMConfig();
 }