Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with a special graph using CW controls

I am using the CW controls for VB6 (but I'm open to using Labview if necessary).
I want to create a moving chart, in which there will be a "window" or "road" scrolling slowly from right to left and a user will try to keep a cursor or marker within the boundaries of this "window" or "road". (Picture a video game where your viewing a road from the top and your car is stationary, but the road is moving from right to left as  you try to keep the car on the road).
 
If you've ever been to the emission testing facilities, they have this graph that scrolls across the screen. When an increase is needed, the "window" slowly moves up and the test operator keeps the vehicle speed within this window.
 
I want to do something like this. The control in my case will be a variable that I'll have from an input card.
Does this make sense?
 
One issue is that  I will supply certain set points and the graph will need to gradually move up or down (It can't jump right to the next set point).
 
Any ideas? I started with a graph and a cursor that I was able to move around, but I can't figure out how to have two traces coming from right to left and then scrolling.
 
I appreciate any help!
 
Jeff
0 Kudos
Message 1 of 2
(5,998 Views)
Hey Jeff,
 

I would recommend looking at the ChartY function of the CWGraph control.  If you plot two plots, it should be able to create something like the window you described.  However, you will have to allow it to plot once across the plot first.  There is some good documentation in the Measurement Studio help that explains the ChartY function further.  On the issue of making it slowly move up to a set point, the only thing I can think to do is try and plot it in increments.  For example, if you start with a window of 0 to 1, and you want to move up to a window between 1 and 2, you could plot 0.1 to 1.1, 0.2 to 1.2, etc.  Let me know if there is anything else I can do to help.

Message Edited by Patrick P. on 11-17-2005 05:08 PM

Pat P.
Software Engineer
National Instruments
Message 2 of 2
(5,975 Views)