Gets the value of a resource attribute.
status = viGetAttribute(vi, attribute, pData)
unique logical identifier to a session, event, or find list.
identifier of the resource attribute.
pointer to the attribute value
The viGetAttribute() operation is used to get the value of an attribute for the specified session, event, or find list.
The pData output parameter is a pointer which type depends on the attribute. For boolean attributes, you have to create a pointer to a ViPBoolean variable and pass it to the function. Use the functions dedicated to pointer creation, as following:
pDataViBoolean = new_ViPBoolean();
Another example for ViUInt32 attributes:
pDataViUInt32 = new_ViPUInt32();
viGetAttribute() writes the value of the attribute to the address pointed by the pData pointer argument. To read this value, use another dedicated function (following is for ViUInt32 attributes):
data = ViPUInt32_value(pDataViUInt32);