示例#1
0
        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);
        }
示例#3
0
 public Visualization()
 {
     InitializeComponent();
     Instance = this;
 }