LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using RMS block from FPGA math and analysis tool box

Hi, 

  I am using sbrio 9642 to measure a 60 hertz sinusoidal voltage waveform. I would like to calculate the dc and RMS value of this signal. I am applying a signal with an RMS of about 1.73 V. But, the RMS results from the FPGA is oscillating around 1.69 to 1.71 V. I would like the FPGA to accurately measure the RMS value. I have attached the pictures of my code and also the configuration of the RMS block with this discussion. 

 

The time between conversions in the NI 9205 analog input is set to be 8 micro second. Because of this, I have given 125Ks/s and also since I am measuring a sinusoidal waveform of 60 Hz frequency, I have used 16.664 m seconds in my measurement time.

 

Dc_rms_error.png

Dc_rms_configuration.png

 

Any help would be appreciated. 

 

- Kumar

0 Kudos
Message 1 of 2
(2,711 Views)

check the actual loop rate.  i suspect you are not running at the rate that you think you are therefore not collecting one cycle of data

 

Stu
0 Kudos
Message 2 of 2
(2,697 Views)