Initialize

NI Digital Multimeters

Initialize

For any application you write, you need to open a session to establish communication with the DMM by using niDMM Initialize or niDMM Initialize with Options.

Tip  Do not confuse niDMM Initialize with niDMM Initiate. niDMM Initiate is used to start an asynchronous acquisition.

In addition to establishing a session with the DMM, niDMM Initialize also sends initialization commands to set the instrument to the state necessary for the operation of the instrument driver. niDMM Initialize can also perform a number of additional tasks such as verifying that the instrument driver is valid for the instrument and resetting the DMM to a known state. niDMM Initialize returns a ViSession handle that you use to identify the instrument in all subsequent NI-DMM calls.

niDMM Initialize and niDMM Initialize With Options create a new session. Repeated calls to niDMM Initialize for the same resource returns the existing session. You can use the same session in multiple program threads.

niDMM Initialize With Options performs all the functionality of niDMM Initialize and optionally sets the initial state of the DMM. With niDMM Initialize With Options, you can configure range checking, caching, coercion recording, simulation, and status reporting.