LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring AC voltage in Labview 8.5

I have all my channels set up fine in MAX and the hardware is working correctly.  I'm trying to measure the power as a function of voltage and resistance but my voltage is ac and I'm not sure how to get a single value through the vis.  When I try using a DAQ Express VI  or virtual channels it gives me 24 regardless of the input voltage.  In MAX it does change and gives me a waveform. I am fairly new to the labview environment.
0 Kudos
Message 1 of 7
(5,818 Views)

Hello,

Can you attach you VIs? It will be easier to help you.

Thanks

    Benjamin R.


Senior LabVIEW Developer @Neosoft


Message 2 of 7
(5,803 Views)
In addition to what BenjaminR asked you will generally need to process the waveform to get the power. The RMS measurement is the standard way to measure AC power. In analog instruments the averaging (or mean) part is done continuously in circuitry or by mechanical filtering. In digitized systems you may need to be more careful to average over integer numbers of cycles of your AC waveform to avoid errors.

Lynn
0 Kudos
Message 3 of 7
(5,779 Views)
I figured it out!
0 Kudos
Message 4 of 7
(5,767 Views)

Some great examples of how to process the acquired waveform to get the RMS voltage are Basic Amplitude Measurements.vi, Basic DC-RMS Measurement.vi, and Advanced DC-RMS Measurement.vi. These examples can be found by going to the Help menu and selecting Find Examples.... Once the NI Example Finder is open select Analyzing and Processing Signals» Level Measurements. Let me know if you need any more help.

Thanks,

Nathan
NI Chief Hardware Engineer
0 Kudos
Message 5 of 7
(5,742 Views)

Hi there,

 

I am a beginner in LabVIEW. I use LabVIEW 8.6 and I am facing the same issue. I am trying to read AC current signal from a lock-in amplifier through a BNC board connected to PCI 6221 interface. However, by using DAQmx and virtual channels, I get a constant read out. The test bench in NI MAX 2012 can read the AC signal as shown in the amplifier. It would be a lot of help if you could help me out here.

 

Thanks in advance,

Karthik. 

0 Kudos
Message 6 of 7
(4,678 Views)

Are you just reading 1 sample?  What is the frequency of your signal?  What is your sampling frequency?



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 7 of 7
(4,667 Views)