LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rms value measurement?

I tried to measure the rms value of a small ac signal ( 6v rms, 50 Hz)
using [c]FP- AI-100 module.
The control rate was selected between 1ms-10 ms.
But the rms value output using Basic dc rms vi was not a constant value. But simply the magnitude of individual samples and the constant rms value (6 V) was not obtained. How to solve it?
0 Kudos
Message 1 of 4
(4,047 Views)
The Basic Averaged DC-RMS VI uses a weighted average to compute the RMS value of the input signal.  The weighting used is a window shape, and serves to emphasize the center portion of the signal over the endpoints.  For this type of method to accurately identify the RMS value you should input several cycles of the tone.  Have you tried using the Averaged DC-RMS VI instead?  This VI will allow you to specify an averaging time that is different than the length of the input signal.  This way you can feed data to the VI in a loop, and the VI will accumulate the data until the averaging time has been exceeded, at which point the VI will produce an output value. 

I suggest looking at the following example to play around with these parameters so you can get a feel for how they work.
...\LabVIEW\examples\measure\maxmpl.llb\Advanced DC-RMS Measurement.vi

In the "Test Signal" section change the square amplitude and noise level to be 0.  That will leave a 50Hz sine tone as the signal being measured.  Also change the "output function" to be "RMS Only" and the "window for RMS" to be "low side lobe".  Notice that the RMS value varies between 2.3 and 2.7 volts.  If you change the "averaging time" to be 100ms (from the default 10 ms) notice how much more consistent the RMS value is.  The longer you average the better the measurement will be.  Basic Averaged DC-RMS uses the length of the input signal as the averaging time. 

-Jim
Message 2 of 4
(4,019 Views)
We got the rms value in a graph as per your direction . Is there any method to show it in an indicator?
0 Kudos
Message 3 of 4
(4,012 Views)
Sure, just take the last value fom the waveform.  Below is some code...

-Jim



0 Kudos
Message 4 of 4
(3,994 Views)