10-28-2024 06:29 AM
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.
10-28-2024 06:52 AM - edited 10-28-2024 06:56 AM
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!)
10-28-2024 06:57 AM
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!!!
10-28-2024 09:00 AM
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.
This consumes memory, you keep running this forever it may end up with no memory left.
10-28-2024 09:18 AM
Thank you very much Ninja for your support and help. I have done that and it is now working.
10-28-2024 03:28 PM
you are welcome ! kudos appreciated !