niModInst Open Installed Devices Session
Creates a handle to a list of installed devices supported by the specified driver. Call this VI and select the name of a National Instruments instrument driver, such as NI-SCOPE, from the driver control. This VI searches the system and constructs a list of all the installed devices that are supported by that driver, and returns both a handle and the number of devices found. The handle is used with other functions to query for attributes such as device name and model, and to safely discard the list when finished.
![]() |
Note This handle reflects the system state when the handle is created (that is, when you call this VI). If you remove devices from the system or rename them in Measurement & Automation Explorer (MAX), this handle may not refer to an accurate list of devices. You should destroy the handle using niModInst_Close Installed Devices Session and create a new handle using this VI. |
![]() |
driver specifies the driver whose supported devices you want to find. This string is not case-sensitive. Some examples are:
NI-SCOPE NI-FGEN NI-HSDIO NI-DMM NI-SWITCH
|
||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
| ||||||
![]() |
session is the NI-ModInst session handle, which acts as a handle to the list of installed devices and is used in other NI-ModInst functions. | ||||||
![]() |
device count returns the number of devices found in the system that are supported by the driver specified in the driver parameter. | ||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
|