National Instruments Instrument Driver NI-DMM User Manual

Ni-dmm instrument driver, Quick reference, Initialize and close

Advertising
background image

QUICK REFERENCE

NI-DMM Instrument Driver

Initialize and Close

ICON

TYPE

PARAMETER

VALUE TO SET, COMMENTS

1

ViRsrc

resourceName

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.

ViBoolean

IDQuery

NIDMM_VAL_TRUE
NIDMM_VAL_FALSE

ViBoolean

resetDevice

NIDMM_VAL_TRUE
NIDMM_VAL_FALSE

ViSession*

vi

Reference to new session handle

ViRsrc

resourceName

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.

ViBoolean

IDQuery

NIDMM_VAL_TRUE
NIDMM_VAL_FALSE

ViBoolean

resetDevice

NIDMM_VAL_TRUE
NIDMM_VAL_FALSE

ViString

Option String

Simulate = 0, RangeCheck = 1
QueryInstrStatus = 1, Cache = 1

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.

niDMM Initialize

2

(niDMM_init)

Creates a new session to the instrument.

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.

322614f.qxp 11/23/2004 10:13 AM Page 1

Advertising