LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with multiplexing signals for XY Plot

Hi All

I'm logging lot of variables in my software and I want to plot them on one plot using tab control widget. The data has no fixed time step and I can't use waveform to plot it - I have to use XY plot. so I'm logging data into arrays and then I'm Bundling arrays so they can be read by XY Plot. I'm multiplexing plots using Case structure. The problem is that some of data should be plotted as pair: readback & setpoint on one plot. It means that the size of cluster at the output of Case structure has different dimension for different plots...

I've figured out walk-around by making all plots Multiplot, but it is far from perfect - there should be a better way to do it 😉 any ideas how?

0 Kudos
Message 1 of 3
(2,337 Views)

Hi Tomasz,

 

The problem is that some of data should be plotted as pair: readback & setpoint on one plot.

When you need to show several plots in your graph you need to create multiplot data. There's no way around.

(Well, you could generate one plot containing all data point, when you separate the corresponding "point clouds" by NaN values.)

 

It means that the size of cluster at the output of Case structure has different dimension for different plots...

No, they don't have "different dimensions"!

- You always end with a 1D array of plots.

- The plots itself can have different amound of points.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,318 Views)
It means that the size of cluster at the output of Case structure has different dimension for different plots...
No, they don't have "different dimensions"!
- You always end with a 1D array of plots.
- The plots itself can have different amound of points.

sorry I've told it wrong: for a single plot I've got a cluster of two 1D arrays, but for double plot I've got array of clusters of 1D arrays

0 Kudos
Message 3 of 3
(2,316 Views)