private void ReadToDbPlcDataPackage() { plcDataPackage = plcService.ReadPlcDataPackage(); databaseService.CreatePlcDataPackage(plcDataPackage); Diagrams.SetNewSpeedAndTimeData(plcDataPackage.Ramp_actual_speed_freq, plcDataPackage.Time.ToOADate()); Visualization.SetNewPlcDataPackage(plcDataPackage); }
private void ReadAndWriteToDbPlcDataPackage() { //Initizalization PlcDataPackage dataPackage; //Read dataPackage = plcService.ReadPlcDataPackage(); //Write //PlcSrv.WritePlcDataSingleVariablePackage(dataPackage); databaseService.CreatePlcDataPackage(dataPackage); Visualization.SetNewPlcDataPackage(dataPackage); Diagrams.SetNewSpeedAndTimeData(dataPackage.Ramp_actual_speed_freq, dataPackage.Time.ToOADate()); CurrentlyMeasurement.CurrentlyMeasurement_LoadOne(dataPackage); }
public Visualization() { InitializeComponent(); Instance = this; }