LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can the mean be taken from an array of daq reads

I am trying to read in thermocouple readings. First, I used the Sample Channels block, but this was unwanted due to the daq clicking with each reading. Now, I am using a continuous reading, but I need to take the mean in order to reduce the effects of the noise on the readings. When I try to do this, I am denied. Any help is appreciated
0 Kudos
Message 1 of 2
(2,489 Views)
Hi ToddT -

What do you mean by denied? Does it not work?

If you are building these continuously read values into an array, the simplest way to take the mean is to use Add Array Elements found on the Numeric Functions Palette. Take this sum and divide it by the number of elements in the array (use the Array Size VI). I've attached a screenshot of how this method would work.

Becky B.
Applications Engineer
National Instruments
Becky Linton
National Instruments
Field Engineer
Office: 734-464-2463
Cell: 248-709-2822
Email: becky.linton@ni.com
0 Kudos
Message 2 of 2
(2,489 Views)