Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Reviewing Chart History

I am using a CWGraph control with Chart Style set to Strip Chart and Chart History set to Fixed, 2000. How do I move back through and display previous plot values. I was told that with Chart History set to Fixed I could drag the Graph data. It is not working so I assume that addition code is required.

Thanks,
Bob
0 Kudos
Message 1 of 4
(6,254 Views)
You can drag the graph data if you configure CWGraph's TrackMode property to cwGTrackPanPlotAreaX, cwGTrackPanPlotAreaY, or cwGTrackPanPlotAreaXY. You can configure this at design-time via the Graph tab of the graph's property pages, then set Track mode to Pan XY, Pan X, or Pan Y.

- Elton
0 Kudos
Message 2 of 4
(6,247 Views)
Elton,
Thanks for the reply, it worked as stated. I now have another related issue. The data is plotted on my chart quite rapidly. When I pan the chart the data moves off the chart before I can view it. What I would like to do is pause the update of the chart but continue to collect data. Once paused, the user could pan back through the previous data and analyze it. Once the pause is released, I need to append the collected data to the previously paused chart and then display it. Any suggestions on how I might accomplish this?

Thanks,
Bob
0 Kudos
Message 3 of 4
(6,242 Views)
Hi Bob,

The simplest solution would be packing the data onto an array and not updating the chart when Pause button is pressed. When the button is released you can check for data on that array and plot that on that chart.

I hope it helps,
Rajiv
0 Kudos
Message 4 of 4
(6,235 Views)