public void InitData(bool bArrayInit = true) { int i = 0; if (bArrayInit) { voltSensor = new RwSensor(); currSensor = new RwSensor(); phSensor = new RwSensor(); spSensor = new RwSensor(); sp2Sensor = new RwSensor(); sp3Sensor = new RwSensor(); tempSensor = new TempSenser(); FBSensor = new FanBreakSensor(); LimitVolt = new SensorLimit(); LimitCurr = new SensorLimit(); LimitPH = new SensorLimit(); LimitTemp = new SensorLimit(); LimitFan = new SensorLimit(); LimitDif1 = new SensorLimit(); LimitDif2 = new SensorLimit(); LimitDif3 = new SensorLimit(); LimitDif4 = new SensorLimit(); LimitSp = new SensorLimit(); FanCurr1 = new FanCurrSet(); FanCurr2 = new FanCurrSet(); FanCurr3 = new FanCurrSet(); FanCurr4 = new FanCurrSet(); DrBzVal = new RWValue(); ControlVal = new RWValue(); AirCountVal = new RWValue(); StatusVal = new RWValue(); //arrFanSensor = new RwSensor[4]; difSensor = new RwSensor[4]; for (i = 0; i < 4; i++) { difSensor[i] = new RwSensor(); } damperSet = new RW2Regi(); IoTSet = new RW2Regi(); } }
public RW2Regi() { hdr = new RWValue(); val = new RWValue(); }