-SCS Parameter Analyzer Reference Manual Section 13:
LPT library function reference
4200A-901-01 Rev. C / February 2017 13-17
getinstattr
This command returns configured instrument attributes.
Usage
int getinstattr(int instr_id, char *attrstr, char *attrvalstr);
The instrument identification code of the LPT library instrument
The instrument attribute name string
The value string of the requested attribute; see Details
Details
All instruments in the system configuration have specific attributes. GPIB address is an example of an
attribute. The values of these attributes change as the system configuration is changed. Therefore, by
getting the values of key attributes at run time, user modules can be developed in a configuration-
independent manner. Given an instrument identification code and an attribute name string, this
module returns the specified attribute value string.
If the attribute value string exists, the returned string will match one of the values shown in the
Attribute value string column of the following table. If the requested attribute does not exist, the
attrvalstr parameter is set to a null string.
Possible values for the getinstattr parameters are listed in the following table.
getinstattr parameter values
Instrument identification code Attribute name string Attribute value string
GPI 2-terminal
GPI 4-terminal
to
KI590
KI595
KI4284
to
KI3402
HP8110