niModInst Get Installed Device Attribute (String) VI
- Updated2025-07-23
- 3 minute(s) read
Returns a string attribute specified by the attribute ID parameter for a device specified by the session in and index in parameters.
The session in parameter is expected to be a valid handle returned by niModInst Open Installed Devices Session. Therefore, this parameter acts as a handle to a list of installed devices. The index in parameter specifies the device in the list for which you want the attribute.

Inputs/Outputs
session in
—
session in is the NI-ModInst session handle created by niModInst Open Installed Devices Session.
index in
—
index in is a zero-based index that specifies the device for which you want the attribute. The index in parameter should be between 0 and (device count – 1), inclusive, where device count is the number of installed devices returned by niModinst Open Installed Devices Session.
attribute ID
—
attribute ID is the ID of the string attribute you want to query. Valid Values Device Name—the name of the device, which can be used to open an instrument driver session for that device Device Model—the model of the device (for example, NI PXI-5122) Serial Number—the serial number of the device
error in (no error)
—
error in describes error conditions that occur before this VI or function runs.
session out
—
session out has the same value as session in.
index out
—
index out has the same value as index in.
attribute value
—
attribute value returns the value of the requested attribute.
error out
—
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. |
session in
—
index in
—
error in (no error)
—
session out
—
index out
—
attribute value
—
error out
—