From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-4461 RMS example from an acquired signal

hi,

I'm trying to calculate the Vrms of an acquired sinal from an AI channel.

Can anyone show me a simple LabWindowsCVI example to do this?

I'd apreciate it.

Thanks in advance.

 

Daniel Coelho

 

Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 1 of 2
(2,666 Views)
Root Mean Square/Quadratic Mean

That means square every sample you take (X^2)
and added to the previous sum value. (sum=sum+X^2)
do this for N samples..
and then calculate

Vrms = Sqrt((X1)2+(X2)2+(X3)2+........+(XN)2/N) = sqrt(sum/N)

Paulos
0 Kudos
Message 2 of 2
(2,646 Views)