06-06-2012 11:24 AM
06-06-2012 11:29 AM
What do you mean by "Graph"? Are you looking for a simple visual indicator of the current joystick position or do you actually want to chart the history of its motion?
06-06-2012 12:06 PM
I'd like the whole history with the ability to reset, with a direction indicator on the same display.
06-06-2012 12:42 PM
just tracking the joystick postion shouldbe straight forward since LV ships with JoyStick function that you can plot on an XY graph but now the complicating follow-up question....
Q:
Does the joystick represent the velocity of some imaginary object that has mass inertia etc?
Ben
06-07-2012 02:40 AM
Nope, it should just track position and the direction that it last moved in. I was wondering how to do it so that I can also extend this to other such cases where directed motion needs to be mapped. Also, where is this vi?
06-07-2012 07:02 AM
@Cenoc wrote:
Nope, it should just track position and the direction that it last moved in. I was wondering how to do it so that I can also extend this to other such cases where directed motion needs to be mapped. Also, where is this vi?
Olivia can help with that!
Explore that palete and look at the help files.
After you init the joystick OUTSIDE a while loop read the postion and add the new value to an array (use a shift register to buffer reading from iteration to iteration) and update an XY graph.
It is a good exercise to start out.
I could make for an electronic version of an Etch-a-Sketch*.
Ben
* copywrite Ohio Arts ?