Esempio n. 1
0
        public void newTempSensorData(YTemperature source, YMeasure data)
        {
            pointXY p = new pointXY()
            {
                x = data.get_endTimeUTC(), y = data.get_averageValue()
            };

            TempData.Add(p);
            monitor_tData.AddPoint(p);
        }
Esempio n. 2
0
        public void newGenericSensorData(YGenericSensor source, YMeasure data)
        {
            pointXY p = new pointXY()
            {
                x = data.get_endTimeUTC(), y = data.get_averageValue()
            };

            WeightData.Add(p);
            monitor_wData.AddPoint(p);
        }
Esempio n. 3
0
        // automatically called on a regular basis with sensor value
        public void newSensorValue(YFunction f, YMeasure m)
        {
            double t = m.get_endTimeUTC();

            chart1.Series[0].Points.AddXY(UnixTimeStampToDateTime(t), m.get_averageValue());
            if (FirstPointDate < 0)
            {
                FirstPointDate = t;
            }
            LastPointDate = t;
            setGraphScale();
        }