コード例 #1
0
 public void open(CSystem_Configuration_File_Reader.CSystem_Configuration_Obj configObj)
 {
     _m_configObj = configObj;
     for (uint uiChannel = 0; uiChannel < _m_TEC_Controllers.Length; uiChannel++)
     {
         _m_TEC_Controllers[uiChannel].open(_m_configObj);
     }
 }
コード例 #2
0
 public override void open(CSystem_Configuration_File_Reader.CSystem_Configuration_Obj configObj)
 {
     lock (_m_Lock)
     {
         if (!_m_isOpen)
         {
             base.open(configObj);
             _m_isOpen             = true;
             _m_RHMonitorConfigObj = _m_configObj.m_PCR_Thermal_Block_Fan_Control_Thermistor_Configuration;
         }
         else
         {
             throw new CPCRInstrumentSystemException("CRH_Thermal_Monitoring_Device can't be opened while currently open.", "Fault");
         }
     }
 }
コード例 #3
0
        virtual public void open(CSystem_Configuration_File_Reader.CSystem_Configuration_Obj configObj)
        {
            _m_configObj = configObj;

            // TEC
            m_strThermalConfigSectionId = CSystem_Defns.cstrTECEntries[m_uiTECIndex];
            m_strThermalControllerId    = configObj.m_TEC_Channel_Configurations[m_strThermalConfigSectionId].m_strControllerName;
            _m_ThermalAdapterUnit       = CThermal_Adapter_Unit.Instance(configObj.m_ThermalControllerConfigurations[m_strThermalControllerId].m_strPort);

            _m_isOpen                  = false;
            _m_fSetpoint               = 0.0F;
            _m_fTemperatureReading     = 0.0F;
            _m_ThermalTemperatureState = eThermalTemperatureState.Idle_ThermalTempState;
            _m_ThermalAdapterUnit.open();
            return;
        }
コード例 #4
0
 public override void open(CSystem_Configuration_File_Reader.CSystem_Configuration_Obj configObj)
 {
     lock (_m_Lock)
     {
         if (!_m_isOpen)
         {
             base.open(configObj);
             _m_isOpen      = true;
             _m_RHConfigObj = _m_configObj.m_RH_Channel_Configurations[m_strThermalConfigSectionId];
         }
         else
         {
             throw new CPCRInstrumentSystemException("CRH_Thermal_Device can't be opened while currently open.", "Fault");
         }
     }
 }