コード例 #1
0
        private void ReadToDbPlcDataPackage()
        {
            plcDataPackage = plcService.ReadPlcDataPackage();

            databaseService.CreatePlcDataPackage(plcDataPackage);

            Diagrams.SetNewSpeedAndTimeData(plcDataPackage.Ramp_actual_speed_freq, plcDataPackage.Time.ToOADate());

            Visualization.SetNewPlcDataPackage(plcDataPackage);
        }
コード例 #2
0
        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 Diagrams()
 {
     InitializeComponent();
     databaseService = new DatabaseService();
     Instance        = this;
 }