QUICK REFERENCE
NI-DMM Instrument Driver
Initialize and Close
ICON
TYPE
niDMM Initialize
(niDMM_init)
Creates a new session to the instrument.
ViRsrc
ViBoolean
ViBoolean
ViSession*
niDMM Initialize with Options
(niDMM_InitWithOptions)
Creates a new session to the instrument and optionally sets the initial state of
session properties.
ViRsrc
ViBoolean
ViBoolean
ViString
ViSession*
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.
™
PARAMETER
2
resourceName
IDQuery
resetDevice
vi
resourceName
IDQuery
resetDevice
Option String
vi
VALUE TO SET, COMMENTS
For Traditional NI-DAQ devices, use DAQ:: # ,
where # 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_TRUE
NIDMM_VAL_FALSE
NIDMM_VAL_TRUE
NIDMM_VAL_FALSE
Reference to new session handle
For Traditional NI-DAQ devices, use DAQ:: # ,
where # 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_TRUE
NIDMM_VAL_FALSE
NIDMM_VAL_TRUE
NIDMM_VAL_FALSE
Simulate = 0, RangeCheck = 1
QueryInstrStatus = 1, Cache = 1
Reference to new session handle
1