LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sample Averaging

Hello everybody:

I will be doing some structural tests and measuring loads, displacements and strains. I am using 22 channels and by the vi that I have created I am able to get reading. I am using the AI Config vi and then the Scan vi, uncouple the array and get 22 seperate readings each time I click the read button. What I want to do is to be able to get 10 samples in one second, average them and store that value into the output file and I just can not figure out how to do this.

Thanking you in advance.

Oguz Egilmez
0 Kudos
Message 1 of 4
(3,137 Views)
Oguz,

In order to get multiple samples, you must delve into the intermediate DAQ tools. AI config will set your buffer size, AI Start will set the triggering and other parameters, AI Read will read your 10 samples, which you can them average, and AI Clear will stop and clean up the DAQ.

Check the DAQ examples, there are plenty of samples that should show you exactly what you need.

-Mike Du'Lyea
Message 2 of 4
(3,137 Views)
Labviewguru wrote in message news:<506500000005000000B3A30000-1031838699000@exchange.ni.com>...
> Oguz,
>
> In order to get multiple samples, you must delve into the intermediate
> DAQ tools. AI config will set your buffer size, AI Start will set the
> triggering and other parameters, AI Read will read your 10 samples,
> which you can them average, and AI Clear will stop and clean up the
> DAQ.

Even easier is to use "AI Waveform Scan" or "AI Continuous Scan" from
the Analog Input Utilities pallette. No need to get into the separate
intermediate stuff.
Be sure to wire the loop iteration counter to the vi so that it
doesn't have to initialize with each iteration.

Rod
0 Kudos
Message 3 of 4
(3,137 Views)
hello there
I have had this vi created about 2 years ago for one of my projects.

Hope it will help!

Cheers
ian.f
MY/SG
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 4
(3,137 Views)