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); }
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); }
// 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(); }