Log in

View Full Version : how to graph joystick inputs as a function of time?


Guopeter
09-02-2009, 10:27
hey teams,
I'm having difficulties graphing the joystick value to an XY graph. All I'm able to do is to plot a point (Y) and move it around as time (X) changes; how do you create a trail with that point?

Thanks!

brianrumburg
09-02-2009, 11:59
I was able to achieve this using the Express XY Graph VI. When you drop it in your code, you will see an XY Graph VI and another VI called Build XY Graph. Go into the properties for the Build XY Graph VI and uncheck 'Clear data on each call'. This should make your point leave a trail.

I've posted a working example in another thread:

http://www.chiefdelphi.com/forums/showthread.php?t=73971

I hope this is what you're looking for!

-Brian

brianrumburg
09-02-2009, 17:49
You might also look at the Waveform Chart VI. It plots a value over time (leaving trails) out of the box.

I've attached a quick example. Good luck!

-Brian