niModInst_GetInstalledDeviceAttributeViInt32
- Updated2023-02-21
- 2 minute(s) read
Specific Function
C Function Prototype
ViStatus niModInst_GetInstalledDeviceAttributeViInt32 (ViSession handle, ViInt32 index, ViInt32 attributeID, ViInt32* attributeValue);
Description
Returns an integer attribute specified by the attributeID parameter for a device specified by the handle and index parameters. The handle parameter is expected to be a valid handle returned by niModInst_OpenInstalledDevicesSession. It therefore acts as a handle to a list of installed devices. The index parameter specifies the device in the list for which you want the attribute.
Input Parameters
| Name | Type | Description | ||
|---|---|---|---|---|
| handle | ViSession | The NI-ModInst session handle created by niModInst_OpenInstalledDevicesSession. | ||
| index | ViInt32 | A zero-based index that specifies the device for which you want the attribute. This index parameter should be between 0 and (deviceCount 1), inclusive, where deviceCount is the number of installed devices returned by niModInst_OpenInstalledDevicesSession. | ||
| attributeID | ViInt32 | The ID of the integer attribute you want to query.
Valid ValuesNIMODINST_ATTR_SLOT_NUMBERthe slot (for example, in a PXI chassis) in which the device is installed. This attribute can only be queried for PXI devices installed in a chassis that has been properly identified in MAX. NIMODINST_ATTR_CHASSIS_NUMBERthe number of the chassis in which the device is installed. This attribute can only be queried for PXI devices installed in a chassis that has been properly identified in MAX. NIMODINST_ATTR_BUS_NUMBERthe bus on which the device has been enumerated. NIMODINST_ATTR_SOCKET_NUMBERthe socket number on which the device has been enumerated.
| ||
| attributeValue | ViInt32* | A pointer to a signed 32-bit integer variable that receives the value of the requested attribute. |
