LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic data, indexing, median

Hi,

I have dynamic data recorded from the DAQ assistant in a while loop.

My data is taken outside the while loop using a loop tunnel with indexing.

I would then like to capture all the data and calculate the overall median, say using the Median calculation of the Statistics2 Express VI, but the data is now a 1-D array of dynamic data.

How should I handle this?

Cheers,

Chris Line
0 Kudos
Message 1 of 3
(2,626 Views)
Hi Chris

If you acquire data, you usually have a 1-D array of values, which in your case are handled as dynamic data. If you acquire data in a loop, you have either a 2-D array of simple values or a 1-D array of waveforms or dynamic data.

I would suggest you to extract the raw values and append them to each other. (See the attachement)

But, in this case, take care of memory usage. Building arrays in loops could cause big memory load.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 3
(2,610 Views)
Thank you.
0 Kudos
Message 3 of 3
(2,594 Views)