Showing results for 
Search instead for 
Did you mean: 

Real time multiple plots

Go to solution

I'm trying to overlay the readout of an instrument on the same plot in real time. I'm trying to get the output of graph 1 to be plotted point by point. Or find a way to remove the return to origin line that appears in graph 2.




0 Kudos
Message 1 of 14

There is a distinction in LabVIEW where "graphs" are used to plot a set of data and "charts" are used to plot point by point. There are more distinctions than that, and you can certainly stretch one to do the other's job, but that is generally their use cases. Try switching to a chart to see if you can get your desired behavior.

0 Kudos
Message 2 of 14

I know about the distinction. My problem is that even while using a chart, the plot from a subsequent run of the loop gets stitched to the previous one. And using a chart does not help.

0 Kudos
Message 3 of 14

If you want to erase the history of the chart, get a chart property node for "History Data" and write an empty array to it.


If you want to erase the history of an XY graph, then you just need to stop graphing it by deleting it from your data array.

Message 4 of 14

Thank you for the suggestions. I hope I'm not annoying but. I need all the plots. Also, if you run the VI I attached to the first message, I'm trying to get what graph 2 does, but without the line that goes back at the end of each run.

0 Kudos
Message 5 of 14

How about starting a new plot each time instead of continuing the old one back at the starting point?

=== Engineer Ambiguously ===
0 Kudos
Message 6 of 14

How does one do that?

0 Kudos
Message 7 of 14

I found what I was looking for. Now I'm trying to dissect it and make it so that I can use real numbers instead of imaginary

0 Kudos
Message 8 of 14

Use of Imaginary Numbers is a very clever "trick" that Altenbach uses to get both the X and Y values in a single quantity.  If you want to use separate X and Y values, you can do that, as well.


Bob Schor

0 Kudos
Message 9 of 14

@Bob_Schor,  Do you have any ideas on how to separate them? I'm trying but i'm not getting anything good.

0 Kudos
Message 10 of 14