LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RMS calculation in Statistics Express

Hi all,

 

I want to figure out whether the RMS calculation in Statitics Express will output a signal with a different "number of samples" than the raw signal. I read about the following knowledgebase:

http://digital.ni.com/public.nsf/allkb/862567530005F09C862567210074EA10

but still not quite sure if averaging will reduce the number of samples. Can anyone help me out?

 

Thanks in advance for any answers!

0 Kudos
Message 1 of 12
(3,496 Views)

An RMS is a scaler.  So I'm not sure where you are talking about reducing the number of samples.

In the end, this is the VI that is called: RMS VI


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 12
(3,463 Views)

I have attatched a picture of my program. In my program, without the Statistics Express it works fine. But once I put in that block, DAQ output says number of samples does not match, and wouldn't let me output the data to the oscilloscope. That's why I suspect that the RMS calculation somehow changes the number of samples when it processes the signal.Capture.JPG

0 Kudos
Message 3 of 12
(3,449 Views)

Oh course it does.  That VI just gives you 1 scaler value.  You started off with a waveform and you are left with a single number.  That is why your number of samples do not match.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 12
(3,446 Views)

Is it possible to get a continuous RMS signal instead of just points, so that the number of samples will match?

0 Kudos
Message 5 of 12
(3,443 Views)
That does not make much sense.

All of your code is hidden in the express VIs so it's impossible to tell what you are doing. What do you need to write? There is no scope code in your VI so your comment about that has no meaning.
0 Kudos
Message 6 of 12
(3,423 Views)

How would you define "a continuous RMS signal"? The RMS process operates on an array of data to produce one number.  As an example suppose your array has 100 values. RMS is a calculation which produces 1 value representing a particular characteristic of those 100 values. If you want to plot a continuous RMS signal, what values will you use for the other 99 elements?

 

Lynn

0 Kudos
Message 7 of 12
(3,408 Views)

It is getting away from the Express VIs, but you could use the RMS PtByPt VI inside of a FOR loop.  Then it is a question of how large of an RMS window do you want.  Same idea as a moving average.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 12
(3,393 Views)

Hi Lynn,

 

so my this is what my signal look like. I want to represent it with a linear envelope wrapping it around. But the output RMS only gives me a value each time. Is there a way to create this evelope signal with a certain sampling rate?

 

 

0 Kudos
Message 9 of 12
(3,382 Views)

If I want a signal with 1000 samples and 10,000 Hz, does that mean I need to run the for loop for 1000 times?

0 Kudos
Message 10 of 12
(3,381 Views)