12-16-2020 03:00 AM
Hi,
I am new to LabVIEW user here
I wanted to create a 4 moving plots as picture below:
However, I have no idea how to make those points move.
I have attached my labview here.
Please help. Thanks!
12-17-2020 06:57 AM - edited 12-17-2020 06:58 AM
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?
12-17-2020 07:08 AM
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?
12-17-2020 07:22 AM
12-18-2020 12:13 AM
Hey GerdW,
Thanks for your opinion!
Do you have any example for the method you mentioned?
Best regards,
Gao
12-18-2020 12:41 AM
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…
12-18-2020 11:14 AM
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?
12-21-2020 12:52 AM
Hey Alex,
I'm trying to create similar motion in the YouTube link below (1:55)
https://www.youtube.com/watch?v=H95SSyTiNm0
Thanks!
01-11-2021 06:45 AM
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:
good luck