LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph

Solved!
Go to solution

https://www.youtube.com/watch?v=3fqqrIYJwXM

I think this can help if someone has my same question rather than going into useless negotiations. trying to help the community with real solutions instead of useless answers.  

0 Kudos
Message 11 of 16
(157 Views)

Hi Omar,

 

when you need help with this basic stuff:

then you really should take the beginner courses to learn LabVIEW…

 

(Instead of watching Youtube videos with lots of DDT wires you could simply open the example finder in LabVIEW and look at all those example VIs about graphs and charts!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 16
(150 Views)

Hi GredW, 

I finished all of these courses later, but I am working in big project and what I asked was very small part so that is why I asked here in the community instead of wasting the time in renewing old things. I can see that wasting some time for old things better than asking the community!!!

0 Kudos
Message 13 of 16
(145 Views)
Solution
Accepted by Omar-Abdelhameed

Thank you for posting the code. Your code, only gets the latest data, and plot on XY graph, this is why it's only a point. 

In order to plot the history  (with previous points), you need to create a Shift register (right click on the border of the while loop and create a shift register).

A shift register is a structure that allow to pass the data from one iteration to the next. 

This shift register will accumulate every new point into the array, at every iteration the new point will be added to the existing array from the shift register. You will then plot the XY arrays into a cluster for XY plot. 

 

LVNinja_0-1730123890576.png


This consumes memory, you keep running this forever it may end up with no memory left. 

 

0 Kudos
Message 14 of 16
(129 Views)

Thank you very much Ninja for your support and help. I have done that and it is now working. 

Message 15 of 16
(121 Views)

you are welcome ! kudos appreciated !

0 Kudos
Message 16 of 16
(71 Views)