Model 4200A-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
);
instr_id
The instrument identification code of the LPT library instrument
attrstr
The instrument attribute name string
attrvalstr
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
x
GPIBADDR
1
to
30
MODELNUM
GPI 2-terminal
GPI 4-terminal
CMTR
x
GPIBADDR
1
to
30
MODELNUM
KI82
KI590
KI595
KI4284
KI4294
PGU
x
GPIBADDR
1
to
30
MODELNUM
KI3401
KI3402
HP8110
HP81110
SMU
x
MODELNUM
KI4200
KI4210
MTRX1
MODELNUM
KI707
KI708
TF1
MODELNUM
KI8006
KI8007
NUMOFPINS
12
72