LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making RMS measurments of noise

My input an amplified voltage noise signal. I want Labview to take 1000 samples (say) of this noise signal and return the average of the 1000 samples as an RMS value - and stop there! How do I get Labview to do this ? Thanks.
0 Kudos
Message 1 of 6
(4,099 Views)
RMS is defined as the square root of the mean of the squares. Take your 1000 samples, square them, calculate the mean (sum divided by number of samples) and take the square root of the result.

The average of the samples is just that - the average; it is not the RMS value.

Lynn
0 Kudos
Message 2 of 6
(4,099 Views)
Also, look at the Analyze Palette for RMS functions.

Lynn
0 Kudos
Message 3 of 6
(4,099 Views)
Thanks. As a LabVIEW novice though I was more looking for a lower-level answer regarding the best way to do what you describe above. My guess, would be that reading the 1000 samples into an array would be the way to proceed ?..
0 Kudos
Message 4 of 6
(4,099 Views)
Yes. Put the samples into an array as they are acquired. If you are doing the acquisition in a loop you can enable indexing at the tunnel where the data leaves the loop and it will automatically create an array of the data. For loops have this auto-indexing enabled by default and while loops have it disabled. Either can be changed by popping up on the tunnel.

There are other ways which also work and may be better if arrays get very large or memory allocation and speed become an issue. Autoindexing will get you started.

Lynn
0 Kudos
Message 5 of 6
(4,100 Views)
Yep - seems to be working fine, thanks for the help!
0 Kudos
Message 6 of 6
(4,070 Views)