Author |
Topic  |
|
jtype327
3 Posts |
Posted - 09 Sep 2004 : 19:08:53
|
I am trying to view the data history of a RT graph in VB. I could not find a VB example, so I used the pangraph C example. So far I have not been able to get the data to move with the scroll bar.
The functions I am using are WGChangeAxisRange(pDynGrDesc, hAxisX, rMin, rMax, True) WGChangeAxisIntercept(pDynGrDesc, hAxisX, rInt, True)
I have set the rMin and rMax values depending on whether it is an increase or decrease in position.
I have tried redrawing the graph after this code with no luck.
Also, are there any functions that would allow me to move to a specific position in the data where the data's value is equal to something?
Any suggestions or tips would be greatly appreciated.
Thanks. |
|
quinncurtis
1164 Posts |
Posted - 10 Sep 2004 : 10:02:48
|
A real-time graph cannot be made to scroll by changing the axis range. Instead, the real-time graph must be toggled into a history replay mode using the WRShowHist function. See the HistDemo example program. Or you can copy the data out of the real-time datasets history buffer (WRGetHistData) and display the data in a separate window as a static graph, using the technique in the pangraph example. |
 |
|
|
Topic  |
|
|
|