Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Windows
 Charting and Real-Time Graphics Tools for Windows
 Using Scroll bars with RT graph
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jtype327

3 Posts

Posted - 09 Sep 2004 :  19:08:53  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07