Esempio n. 1
0
 public OpcClient(IAirHeaterCom heaterCom, IPidCom pidController)
 {
     _heaterCom     = heaterCom;
     _pidController = pidController;
     _socket        = new DataSocket();
     StartOpcWriter();
 }
Esempio n. 2
0
 public MainWindow()
 {
     sim          = new AirHeaterSimulation(21.5, 0);
     airHeaterCom = new SimulatedHeaterReader(new LowPassFilter(21.5), sim);
     //airHeaterCom = new AirHeaterReader(new LowPassFilter(21.5));
     //airHeater = new DaqReader(new LowPassFilter(21.5));
     analogWaveform = new AnalogWaveform <double>(0);
     //unfilteredAnalogWaveform = new AnalogWaveform<double>(0);
     InitializeComponent();
     TemperatureGraph.DataSource = analogWaveform;
     //TemperatureGraphUnfiltered.DataSource = unfilteredAnalogWaveform;
     DataContext = this;
     RunViewUpdater();
     pidControl = new PidController(airHeaterCom);
     //realPid = new PidReader();
     opcClient = new OpcClient(airHeaterCom, pidControl);
     SetPoint  = 25;
 }
Esempio n. 3
0
 public PidController(IAirHeaterCom plantReader)
 {
     _plantReader = plantReader;
     StartPid();
 }