Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Slow AC measurement in C++ application

Good morning.

 

My company recently purchased a NI-4065 DMM USB and I am in the process of writing my own application in C++ Builder 6.0 to interface with it.

 

The purpose of the application is to do all ranges of measurements for DC Voltage, DC Current, AC Voltage, AC Current and 2-Wire Resistance. I have the application working properly and interfacing with the hardware properly. My DC readings and Resistance readings are very quick to update, but my problem with which I need assistance is the AC measurements. Although the measurement itsself is correct, it takes extremely long to read a value (2-3 seconds) no matter the resolution, min frequency, max frequency or power line parameters I set it up with.

 

I am using "niDMM_ConfigureMeasurementDigits" and "niDMM_ConfigureACBandwidth" to set up the session for AC measurement, and using "niDMM_Read" for reading the measurement value. I use this same read function to read my DC measurements and resistance and they execute very quickly.

 

Am I missing the initialization of some crucial properties for AC measurements to enable it to read quickly, or am I doing something completely wrong? I would like to have at least 1 reading per second but prefer more with less than 6.5 digits. I am also experiencing a huge time delay when switching measurement modes and sessions get closed and created again.

 

Please assist me with this problem if possible, as it is crucial to have a good measurement update rate.

 

Thank you.

0 Kudos
Message 1 of 3
(5,674 Views)

Hi mateq_jj,

 

It seems like you are using the correct functions. Please refer to the examples installed with the NI-DMM driver to compare. These can be found at Start>All Programs>National Instruments>NI-DMM>Examples.

 

Additionally, you can refer to the NI Digital Multimeters Help article on Configuring Measurement Timing. I hope this helps. Have a great weekend!

 

Best,

Carisa

Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(5,632 Views)

Thanks for the reply Carisa! After posting this here I reposted it in the Digital Multimeters and Precision DC sources section and have since gotten many useful replies there.

 

Before coming to the forums I have used the example code and I have pretty much gone through all the manuals available.. I appreciate the help, that help file eventually lead me to the solution.


Thank you very much.

0 Kudos
Message 3 of 3
(5,612 Views)