LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Moving Points in 3D Curve

Hi,

I am new to LabVIEW user here 

 

I wanted to create a 4 moving plots as picture below:

 Untitled.png

However, I have no idea how to make those points move. 

I have attached my labview here.

 

Please help. Thanks!

0 Kudos
Message 1 of 9
(1,422 Views)

Hi Gao,

 

your VI plots 4 points and 2 lines.

 


@Gao1219 wrote:

I wanted to create a 4 moving plots as picture below: …

However, I have no idea how to make those points move. 


In this picture nothing is "moving"…

To anmiate those points/lines you need to change their coordinates over time. I suggest to use a loop with some timing inside and a list of coordinates (or some formulas describing the position of objects as function of time)!

 


@Gao1219 wrote:

I have attached my labview here.


Are you sure this is your VI? Why don't you provide a link to the website where you found it?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(1,381 Views)

Hey GerdW,
Thanks for your reply!


I am so sorry for my poor choice of words.
I am using the VI from https://forums.ni.com/t5/Example-Code/Graphing-3D-XYZ-Scatter-Plots-and-Lines/ta-p/3531017

 

I am working on the animation of signals recorded from accelerometer to a point moving with time. Will it be the same method as what you mentioned?

 

 

0 Kudos
Message 3 of 9
(1,378 Views)

Hi Gao,

 

the VI just draws some points and lines.

When you call that VI several times with changes coordinates for all items then you can animate the points and lines…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(1,376 Views)

Hey GerdW,

 

Thanks for your opinion!

 

Do you have any example for the method you mentioned? 

 

Best regards,

Gao 

0 Kudos
Message 5 of 9
(1,362 Views)

Hi Gao,

 


@Gao1219 wrote:

Do you have any example for the method you mentioned?


Calling subVIs in loops is very basic LabVIEW stuff, so I suggest to take the "Training resources" found in the header of the LabVIEW board…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(1,357 Views)

that's interesting... the NI example code you attached can be run in Labview 2019 32 Bit

but not in Labview 2020 64 Bit

 

Do you use LabView 2020 32 Bit?

 

>I wanted to create a 4 moving plots as picture below:

you have attached a static image.

>However, I have no idea how to make those points move.

by changing the XYZ coordinate?

0 Kudos
Message 7 of 9
(1,349 Views)

Hey Alex,

 

I'm trying to create similar motion in the YouTube link below (1:55)

 

https://www.youtube.com/watch?v=H95SSyTiNm0

 

Thanks!

0 Kudos
Message 8 of 9
(1,328 Views)

so there are at least two ellipses - with varying parameters a and b -  defined by the same number of x,y point,

and each point of each ellipsis is connected to another - indicated with a ray between those 2 points?

 

I would build 3 individual plots and stack them together to one XY graph like this:

 

alexderjuengere_0-1610369081273.png

 

good luck

 

0 Kudos
Message 9 of 9
(1,279 Views)