Current Position:Home > How to make labview program to get average value of 200 reading from multimeter (by using loop)

How to make labview program to get average value of 200 reading from multimeter (by using loop)

Update:11-30Source: network consolidation
Advertisement
Hello
How to make labview program to get average value of 200 reading from multimeter (I using using loop) to read voltage from mulmeter  but I like to get average value of all of 200 reding how can I do that?
Thanks
Wee
Solved!
Go to Solution.

The Best Answer

Advertisement
Another idea with less programming - take advantage of the "free" array that comes with a Chart - i.e. the  History Data.
1) Wire your DMM data to a Chart. (You can set the chart to invisible if you don't plan on using it in the GUI).
2) Set the Chart History Length to 200 (right click on the chart, click on Chart History Length...)
3) On the block diagram, use the History Data Property Node, wire it to Mean.vi, and you're done.
Easiest running average ever.
Message Edited by Broken Arrow on 04-07-2010 11:36 AM
Richard
Attachments:
EasyAvg.jpg ‏8 KB