LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot a changing 3d vector from discrete values

Hello

 

I have a labview program with a while loop that gives me 3 new values every iteration. Lets say they are:

 

while(1)

{

i=i+1

x = i

y = i/2

z = -i

}

 

I want these to be plotted in a 3d graph, so that it will show a number of dots, updated in realtime, as the loop is iterating.

 

I'm a beginner with labview, so please explain how to do this as detailed as possible.

0 Kudos
Message 1 of 3
(2,439 Views)
0 Kudos
Message 2 of 3
(2,341 Views)

 

Hi,

 

Just as JKMM suggests, you can use a Line Graph. The key is to use shift registers to store the growing arrays of elements that you generate. For each loop, you add a new element to the x, y and z array before updating the Line Graph. I attach an alternative to JKMM's alternative with some property nodes that you can play around with.


0 Kudos
Message 3 of 3
(2,321 Views)