LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graphing Directed Motion in Labview

I was wondering if it was possible to graph directed motion in Labview. That is, I am trying to graph the motion of the top of a joystick and the direction it is moving in, perhaps with an arrow or some other sort of head. Since the joystick has a center, it would also need to start from the center. Thank you in advance for any help on the matter.
0 Kudos
Message 1 of 6
(2,687 Views)

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?

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 2 of 6
(2,685 Views)

I'd like the whole history with the ability to reset, with a direction indicator on the same display.

0 Kudos
Message 3 of 6
(2,678 Views)

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

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 6
(2,673 Views)

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?

0 Kudos
Message 5 of 6
(2,665 Views)

@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!

JoyStick.JPG

 

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 ?

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 6
(2,659 Views)