how to graph joystick inputs as a function of time?

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!

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:

I hope this is what you’re looking for!

-Brian

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

Waveform Chart Example.zip (8.89 KB)


Waveform Chart Example.zip (8.89 KB)