Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the ID number of an attribute, based on the name string?

In an IVI driver, how can I get the list of attributes of an instrument? Is there a way to retrieve the long type representation of an attribute ID, based on the string name? Say, I put "IVIDMM_ATTR_FUNCTION", and I receive the long number (i.e. 1150010), so I can call the SetAttribute function?
Thanks.
0 Kudos
Message 1 of 2
(3,244 Views)
Hello-

Tokens like IVIDMM_ATTR_FUNCTION are actually macros that have been #define'd in a header file. Many of the headers are found in C:\VXIPNP\WIN95\include. For example, the macro for IVIDMM_ATTR_FUNCTION is found on line 111 of ividmm.h.

Randy Solomonson
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,244 Views)