NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

calculating the mean

Hello,
In my project iam continuously reading analog values from DAQ.I want to calculate the mean of these analog values for every 60 seconds or 120 seconds.any examples are welcome.
Thank u
0 Kudos
Message 1 of 3
(2,742 Views)
You posted to the TestStand board, but this problem would be better suited for Labview. In Labview, you could have a loop that reads the DAQ. In another loop, you could have a timer that waits the required time, then gets the DAQ values, add the values and divide by the number of values. The loop repeats and waits again until it is time to calculate the mean. See attached vi.
- tbob

Inventor of the WORM Global
Message 2 of 3
(2,739 Views)
Thank u very much,It helped me.
0 Kudos
Message 3 of 3
(2,725 Views)