LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Averaging scaler data

Solved!
Go to solution

I have a double precision scalar value from a DAC that represents current measured in a home wind turbine application. This value is collected from a home made circuit that has a small "noise issue".  This noise causes fluctuations in the value of plus or minus about 20% which shows up visually in the output gauge of my VI as needle shakeThe value from the DAC is read and displayed 3 times per secondI was thinking that there must be a way to display a running average of the signal over the last N reads or N seconds which would moderate the noise and needle shake somewhatTried messing with the built in RMS VI but the input data type is Array and I have double precision Scalar. I'm REALLY new to Labview and am swimming with ideas of what must surely be possible but am still working on absorbing the incredibly array of features this software has.

 

                            Any thoughts much appreciated.

0 Kudos
Message 1 of 7
(3,593 Views)
Solution
Accepted by bratvold
You may use Point By Point VIs.
0 Kudos
Message 2 of 7
(3,590 Views)

I agree with Eugen that the PtByPt VI's are what you have requested. However, if you're getting "needle shake" while updating that slow - 3 times a second - then you'll be averaging in the noise rather than averaging it out. Your needle may not shake as much, but the data is still inclusive of the noise. If that's what you're after - just calming down the perceived noise on the human interface (and there's sometimes nothing wrong with that) then go forth.

 

Sounds like you really need a faster sample rate and a low-pass filter.

Richard






0 Kudos
Message 3 of 7
(3,583 Views)

Thanks Eugen! DANG that was easy! Did exactly what I was hoping and took about 60 seconds.  Cool site you linked there too. I need to spend some quality time browsing Labview help files and documentation to get up to speed.

 

To Broken Arrow....  Fair point. This method will include the error in the average value created. However it is just human nicety of a relatively smooth indicator I'm after not scientific precison. When I get time I'm going to make a REV II of the interface circuit to try to get the output noise eliminated in the first place.

 

                                          Greg Bratvold.

0 Kudos
Message 4 of 7
(3,558 Views)

Nice to help you 😄

 

The site I linked is my own, it's my signature on NI Forums.

0 Kudos
Message 5 of 7
(3,553 Views)

Hi,

 

I want to read vibration data from compact DAQ & display ovrall signal amplitude & FFT graph after averaging the input signal for 1 minute as vibration signal is continuously varies.  Pl. guide. I herewith attach my vi. In this vi I have not included averaging still.

0 Kudos
Message 6 of 7
(3,210 Views)

Hello,

 

I would try taking a look at the point by point vi's linked above.  They should be the solution to your problem.

Applications Engineer
National Instruments
0 Kudos
Message 7 of 7
(3,169 Views)