LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ac voltage measurements with ni 9219

Well did you try increasing the sample rate in the DAQ Assistant?  It is set to 1.95Hz?  Open the DAQ Assistant and change the rate.

0 Kudos
Message 11 of 19
(971 Views)

The 9219 in High Resolution mode has a conversion time of 500 ms, so this device is completely unsuitable for AC voltage measurements. Even in High Speed mode the conversion time is 10 ms => rate = 100 Hz. That is not fast enough for effective measurements at power line frequencies as you have been told by several other people.

 

Get a faster device.

 

Lynn

0 Kudos
Message 12 of 19
(959 Views)

Oh I see it now, so under the Device tab the ADC Timing Mode is set to High Resolution, set to High Speed will allow the sample rate to increase to 100Hz.  But yeah still terrible hardware for sampling a waveform.

0 Kudos
Message 13 of 19
(948 Views)

For the archives, the command in CVI is:

 

ret = DAQmxSetChanAttribute (TaskHandle, "", DAQmx_AI_ADCTimingMode, DAQmx_Val_HighSpeed);

 

OR

 

ret = DAQmxSetAIADCTimingMode (TaskHandle, "", DAQmx_Val_HighSpeed);

 

Keeping the second parameter blank "" causes it to apply to all channels.

 

Also keep in mind this setting goes from 10 mS/S/ch to 20 mS/S/ch if any of the channels are set to thermocouple instead of voltage.

0 Kudos
Message 14 of 19
(626 Views)

Why would we need something "for the archives" about a CVI command posted in the LabVIEW board?

0 Kudos
Message 15 of 19
(607 Views)

Because it was the most-compatible hit on the NI lexer, and not even the guys at NI tech support could answer the question for CVI.

I just thought someone might find it useful, but I'd be happy not to spend my time posting helpful tips in the future.

0 Kudos
Message 16 of 19
(602 Views)

Please continue to help and post tips.  But it would be helpful if you posted in the CVI forum.  It provides no help to someone using LabVIEW.

 

What does "lexer" mean?  I guess you meant to say NI website.  ??

0 Kudos
Message 17 of 19
(595 Views)

Google.

0 Kudos
Message 18 of 19
(585 Views)

I did.  It doesn't mean anything related to the way you used it in your message.

0 Kudos
Message 19 of 19
(557 Views)