LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph

Hi, I am doing some measurments, and i would like to do live multiple plots overlapped. For example i take a first array of measurments , plot them , take a second array and plot this with the previous one in the same graph. The problem i am facing is that XY graphs connects the last poitn of the first array of measurments with the first one of the second set of measurments. Someone has some suggestion ?

Screenshot 2024-02-22 163952.png

Screenshot 2024-02-22 164017.png

  

0 Kudos
Message 1 of 4
(464 Views)

Don't use interpolation for the plot style.

 

(I would also recommend to use a single 1D complex array to build the data. Half the code!)

0 Kudos
Message 2 of 4
(452 Views)

If you insert a single "NaN, NaN" point in between the two graphs, it will not connect them with a line.

 

Kyle97330_0-1708627247250.png

 

However what you really might want to do is make an array of bundles, to be able to put the graphs on different plots, to use different colors, styles, etc:

Kyle97330_1-1708627362867.png

 

0 Kudos
Message 3 of 4
(414 Views)

The way you are doing now, by  using shift registers, you are combining 1 array with the second array , basically you a ploting both arrays together.

In order to do what you want you need to plot "array of XY clusters"

First XY is your first array 

Then second array build another cluster, pack them as array of clusters then plot. 

 

ROtake_0-1708637056226.png

 

 

RKO
0 Kudos
Message 4 of 4
(387 Views)