Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

plot measured realtime data

Hi All:
I would like to plot the measured realtime data from CWNumEdit. The value displayed in CWNumEdit is keep changing. is there anyway to plot these values versus time?
can i just use this command?
CWGraph1.PlotY CWNumEdit.Value
0 Kudos
Message 1 of 2
(5,788 Views)
The graph will only display one data point if you use PlotY. If you would like to see multiple points that represent the history of the data values, use ChartY instead.

Also, if you want to see the values vs. time, you will need to A.) specify the X data in date/time format as specified in the remarks of the documentation for the CWAxis.FormatString property, and B.) set the format string of the axis such that the axis labels display date/time values. For A.), if the X values are at a fixed interval, the easiest way to do this would be to set the DefaultxFirst and DefaultxInc properties, then just call PlotY/ChartY for the Y data values. If they are not at a fixed interval, you will need to explicitly specify the X value along with the Y value and call PlotX
Y/ChartXY instead of PlotY/ChartY. For B.), you can configure this in the Format tab of the graph's property pages.

- Elton
0 Kudos
Message 2 of 2
(5,788 Views)