LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert acquired samples into a 1D array?

Hello there,
 
I'm working with an application where I have to acquire a certain signal for a set period of time, and then perform some statistical calculations upon the array of data already sampled.
 
I am not very sure if throwing the data into an array prior to statistical calculations is the right way to go, but if yes how can I save the sampled data into a 1D array. I have a basic knowledge of LabVIEW, but have no idea about the array operations.
 
Any help would be appreciated, thankyou very much...
 
0 Kudos
Message 1 of 4
(2,837 Views)
It depends on what kind of processing you are doing.  Data acquired using DAQmx arrives in Dynamic data type which has timing information if that is important to you.  Otherwise you can use the "From DDT" (under Signal Manipulation, see image) and select "1D array of scalars - automatic" option.
 
Regs,
Vikas
0 Kudos
Message 2 of 4
(2,827 Views)

Thankyou very much for your prompt response.

I still cannot get the mean of the sampled values, the output of the mean function keeps on giving me the real-time sampled value. So again, can I store the sampled values into a 1D array, so that I can input the array into the mean function, or is there any other way to design this application:

I have a daq device that will acquire an input signal for 1 second at a rate of 1000S/s. I nead to capture the max, min, mean and st. dev of all the samples acquired during the 1 sec. What is to be done exactly.

Thanks a lot for your support 🙂

 

0 Kudos
Message 3 of 4
(2,810 Views)

Check this VI.. hopefully it helps.

Vikas

0 Kudos
Message 4 of 4
(2,786 Views)