Пример #1
0
        public devicePCRCycler(tecBoardModel modelIn, Configuration.CTEC_Channel_Configuration tecConfig)
        {
            _setPoint        = new double[6];
            _prev_setPoint   = new double[6];
            _rampingLowTemp  = new double[6];
            _rampingHighTemp = new double[6];
            _bAtTemp         = new bool[6];

            _theModel = ((HelixGen.App)(App.Current)).Model;

            _tecBoard = modelIn.theBoard;
            for (int ndx = 0; ndx < 6; ndx++)
            {
                _setPoint[ndx]      = _tecBoard.GetTemperature(ndx, 0);
                _prev_setPoint[ndx] = 0;
                //_prev_setPoint[ndx] = _tecBoard.GetTemperature(ndx, 0);
                _rampingLowTemp[ndx]          = NO_SETPOINT;
                _rampingHighTemp[ndx]         = NO_SETPOINT;
                _bAtTemp[ndx]                 = false;
                _theModel.bUnderTempPlan[ndx] = true;
            }

            _nChannel  = (int)(tecConfig.m_uiTECAddress) - 1;
            _tecConfig = tecConfig;

            // Stash a reference to the model while we're at it.
        }
Пример #2
0
        public deviceHeater(tecBoardModel modelIn, int nChannelIn)
        {
            _tecBoard = modelIn.theBoard;
            _nChannel = nChannelIn;

            // Stash a reference to the model while we're at it.

            _theModel = ((HelixGen.App)(App.Current)).Model;
        }