Search code examples
graphlabview

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.

Thank you in advance for any help on the matter.


Solution

  • I am not absolutely sure if this is what you asked for. However this is how I would graph something with arrows:

    Code as screenshot:

    Block diagram

    Block diagram

    Front panel

    Front panel

    Code explained in text form:

    • The front panel consists of a "2D Compass" graph which can be found under Modern/Graph/Compass Plot
    • To create the data for the plot I have used two double array constants. One for the angles of the arrows and the other one for their length. These two constants are connected to the Plot Helper vi which gets automatically inserted and connected with the plot indicator.