LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting multiple plots with different time steps but same total duration

Solved!
Go to solution

Hi,

 

I'm trying to plot on a Waveform Graph a series of plots which are taken over the same total time T, but with different time steps dt, meaning that each plot has a different number of points N. I know I can use a bundle to add timing information, but I can't do that while feeding the Graph with a 2D array of values. Is it possible to plot all of them, each one with its own timing information? I'm attaching a screenshot of the incorrect output, and of the code.

VitekStepien_1-1611957615237.png

 

VitekStepien_0-1611957596862.png

 

0 Kudos
Message 1 of 3
(1,090 Views)

I could obviously interpolate or resample the data, but that's not a good solution because it alters it - I want to preserve the data as is. One easy way out is to visualize the data in Matlab, but that would be kinda silly to jump between programs just for that cause, wouldn't it?

 

Hopefully someone knows how to do that...

0 Kudos
Message 2 of 3
(1,049 Views)
Solution
Accepted by topic author VitekStepien

Instead of plotting arrays of data, you should be plotting arrays of waveforms.  Each waveform contains the data and also the t0 and dT of the particular data.

0 Kudos
Message 3 of 3
(1,027 Views)