LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Advantech PCL-818 DAQ card, what's best function to average the signal for 10 cycles?

I am not sure what Labview function to use since I used Advantech's AIVoltage function to obtain 12 data points for 10 cycles? ALVoltage outputs only a single value(SGL datatype).
0 Kudos
Message 1 of 2
(2,901 Views)
Hello,

The method that you go about doing this depends on the way that the 12 data points for each of the 10 cycles are stored. The ALVoltage outputs as an SGL, but is it stored as an array (1D, 2D)?

If you are using LabVIEW 7.x, then you have the option to use the Statistics Express VI. You have multiple different options with this VI including arithmetic mean, root mean square, median, mode, and many more.

If you are not using LabVIEW 7.x or you just simply do not want to use the Express VI, the next option you have is to write your own code that pulls the data out of whatever format it is stored in, and then performs some averaging on the data. If you would rather not write your own code for this purpose, I suggest searching the Example Code Library for some code that has already been created for averaging purposes.

I hope this information helps.

Regards,

Jared A.
0 Kudos
Message 2 of 2
(2,901 Views)