National Instruments NI-DMM User Manual

QUICK REFERENCE
NI-DMM Instrument Driver

Initialize and Close

ICON TYPE PARAMETER VALUE TO SET, COMMENTS
niDMM Initialize
(niDMM_init)
Creates a new session to the instrument.
ViRsrc resourceName For Traditional NI-DAQ devices, use DAQ::#,
ViBoolean IDQuery NIDMM_VAL_TRUE
ViBoolean resetDevice NIDMM_VAL_TRUE
ViSession* vi Reference to new session handle
niDMM Initialize with Options
(niDMM_InitWithOptions)
Creates a new session to the instrument and optionally sets the initial state of session properties.
ViRsrc resourceName For Traditional NI-DAQ devices, use DAQ::
ViBoolean IDQuery NIDMM_VAL_TRUE
ViBoolean resetDevice NIDMM_VAL_TRUE
ViString Option String Simulate = 0, RangeCheck = 1
ViSession* vi Reference to new session handle
2
#
is the device number. For NI-DAQmx devices, the device name is assigned by Measurement & Automation Explorer (MAX). Optionally, for all devices you can use an IVI logical name.
NIDMM_VAL_FALSE
NIDMM_VAL_FALSE
#
is the device number. For NI-DAQmx devices, the device name is assigned by Measurement & Automation Explorer (MAX). Optionally, for all devices you can use an IVI logical name.
NIDMM_VAL_FALSE
NIDMM_VAL_FALSE
QueryInstrStatus = 1, Cache = 1
1
#
,
1 In LabWindows™/CVI™, C, and C++, constant names such as NIDMM_VAL_TRUE and
NIDMM_VAL_AUTO_ZERO_ON refer to the use of #defines in your program. In LabVIEW, these constants refer to Boolean or ring controls with corresponding entries. For example, NIDMM_VAL_AUTO_ZERO_ON corresponds to the LabVIEW ring control entry Auto Zero On. Refer to LabVIEW Help (Show Help) for more details.
2 Function name for LabWindows/CVI, C, C++, and Visual Basic.
Initialize and Close (continued)
ICON TYPE PARAMETER VALUE TO SET, COMMENTS
niDMM Close
(niDMM_close)
Closes the current session to the instrument.
ViSession vi Session handle

Configure

ICON TYPE PARAMETER VALUE TO SET, COMMENTS
niDMM Configure Measurement Digits
(niDMM_ConfigureMeasurementDigits)
Configures the common properties of the measurement.
ViSession vi Session handle
ViInt32 Function DC volts, AC volts, and so on
ViReal64 Range
ViReal64 Resolution in Digits
niDMM Configure Multi Point
(niDMM_ConfigureMultiPoint)
Configures the properties for multipoint measurements.
ViSession vi Session handle
ViInt32 Trigger Count Default = 1
ViInt32 Sample Count Default = 1
ViInt32 Sample Trigger Immediate, External, TTL0, and so on
ViReal64 Sample Interval Default = Auto
niDMM Configure Waveform Acquisition
(niDMM_ConfigureWaveformAcquisition)
Configures the NI 4070/4071/4072 for waveform acquisitions.
ViSession vi Session handle
ViInt32 Function Voltage Waveform, Current Waveform
ViReal64 Range
ViReal64 Rate
ViInt32 WaveformPoints

Measurement Options

ICON TYPE PARAMETER VALUE TO SET, COMMENTS
niDMM Configure Powerline Frequency
(niDMM_ConfigurePowerLineFrequency)
Specifies the powerline frequency.
ViSession vi Session handle
ViReal64 Powerline Default = 60 Hz
NI-DMM Instrument Driver Quick Reference
Frequency
2 ni.com
Measurement Options (continued)
ICON TYPE PARAMETER VALUE TO SET, COMMENTS
niDMM Configure Auto Zero
(niDMM_ConfigureAutoZeroMode)
Configures the DMM for Auto Zero.
ViSession vi Session handle
ViInt32 AutoZero Default = Auto
niDMM Configure ADC Calibration
(niDMM_ConfigureADCCalibration)
Allows the NI 4070/4071/4072 to compensate for gain drift since the last external or self-calibration.
ViSession vi Session handle
ViInt32 ADC Calibration Default = Auto
niDMM Configure Offset Comp Ohms
(niDMM_ConfigureOffsetCompOhms)
Allows the NI 4070/4071/4072 to compensate for voltage offsets in resistance measurements.
ViSession vi Session handle
ViInt32 Offset Compensated Default = Off
niDMM Configure AC Bandwidth
(niDMM_ConfigureACBandwidth)
Configures the Min Frequency and Max Frequency properties that the DMM uses for AC measurements.
ViSession vi Session handle
ViReal64 Minimum Frequency Hz
ViReal64 Maximum Frequency Hz
niDMM Configure Frequency Voltage Range
(niDMM_ConfigureFrequencyVoltageRange)
Specifies the expected maximum amplitude of the input signal for frequency and period measurements on the NI 4070/4071/4072.
ViSession vi Session handle
ViReal64 Frequency Voltage Default = AutoRange
niDMM Configure Current Source
(niDMM_ConfigureCurrentSource)
Configures the current source for diode measurements on the NI 4070/4071/4072.
ViSession vi Session handle
ViReal64 Current Source Default = 1.00 mA
niDMM Configure Waveform Coupling
(niDMM_ConfigureWaveformCoupling)
Configures instrument coupling for voltage waveforms on the NI 4070/4071/4072.
ViSession vi Session handle
ViInt32 Waveform AC or DC
Ohms
Range
Coupling
©
National Instruments Corporation 3 NI-DMM Instrument Driver Quick Reference

Capacitance and Inductance

ICON TYPE PARAMETER VALUE TO SET, COMMENTS
niDMM Configure Cable Comp Type
(niDMM_ConfigureCableCompType)
Sets the Cable Compensation Type property for the current capacitance/inductance mode range on the NI 4072.
ViSession vi Session handle
ViInt32 Cable Comp Type
niDMM Configure Open Cable Comp Values
(niDMM_OpenCableCompValues)
Configures the Open Cable Comp Conductance and Open Cable Comp Susceptance properties on the NI 4072.
ViSession vi Session handle
ViReal64 Conductance
ViReal64 Susceptance
niDMM Configure Short Cable Comp Values
(niDMM_ConfigureShortCableCompValues)
Configures the Short Cable Comp Resistance and Short Cable Comp Reactance properties on the NI 4072.
ViSession vi Session handle
ViReal64 Resistance
ViReal64 Reactance
niDMM Perform Open Cable Comp
(niDMM_PerformOpenCableComp)
Performs the open cable compensation measurements and returns open cable compensation conductance and susceptance values on the NI 4072.
ViSession vi Session handle
ViInt32 Max Time
ViReal64 Conductance
ViReal64 Susceptance
niDMM Perform Short Cable Comp
(niDMM_PerformShortCableComp)
Performs the short cable compensation measurements and returns short cable compensation resistance and reactance values on the NI 4072.
ViSession vi Session handle
ViInt32 Max Time
ViReal64 Resistance
ViReal64 Reactance
NI-DMM Instrument Driver Quick Reference
4 ni.com
Loading...
+ 8 hidden pages