LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

smoothing a digital input

I have a digital input coming from a third party device, LawsonLabs Model 301.  It is an analog to digital converter converting a voltage and sending me a number.
 
This voltage is not as steady as I would like it to be so I've looked around to find a vi that does some kind of averaging.  I know that I can easily achieve this myself by taking some samples and averaging them.  I wondered if NI would have a vi that does this, though.
 
Thanks for any help in advance.
Ron Deavers, CLD
0 Kudos
Message 1 of 5
(3,029 Views)
Look for the decimation vi in the examples.
0 Kudos
Message 2 of 5
(3,020 Views)
How about the Mean function?
0 Kudos
Message 3 of 5
(3,017 Views)

Depending on your signal noise maybe also the median filter is worth mentioning.

Search the examples for  Median Filtering.vi

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 5
(3,004 Views)
I'd suggest to use the vi "Mean ptbypt". There you can define the number of samples to be averaged.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 5 of 5
(2,999 Views)