LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent XY plots from Retracing

I want to collapse multiple XY plots (~20 to 30) into a few groups (2-3) and replot them in a new XY plot.

I can't seem to find an elegant way to combine the plots without having the plot from resetting back to the start of the next plot, creating an annoying additional line that crosses though the data.

I've attached a VI with example code, showing the reset problem.

Any help or suggestions in solving this riddle would be appreciated!

CB
0 Kudos
Message 1 of 3
(2,805 Views)
Insert a single point with coordinates (NaN, NaN) to break the plot. Simply add an NaN element to your X array and one to the corresponding Y array every time you want to make a new segment. In other words, expand your build array functions such that the old array still comes in the top, the new addition to the bottom, but an NaN constant wired in the middle.

Daniel L. Press
PrimeTest Corp.
www.primetest.com
Message 2 of 3
(2,805 Views)
I was just coming across that line of thinking, but was struggling on what to insert. NaN is what I needed.

Thanks for your help!
0 Kudos
Message 3 of 3
(2,805 Views)