-SCS Parameter Analyzer Reference Manual Section 13:
LPT library function reference
4200A-901-01 Rev. C / February 2017 13-135
Also see
clrcon (on page 13-199)
clrscn (on page 13-9)
clrtrg (on page 13-11)
dev_abort (on page 13-92)
devclr (on page 13-67)
kibdefint (on page 13-24)
getstatus
This command returns the operating state of a specified instrument.
Usage
int getstatus(int instr_id, long parameter, double *result);
The instrument identification code
The parameter of query; see
The data returned from the instrument; the getstatus command returns one item
Details
If you see the UT_INVLDPRM invalid parameter error returned from the getstatus command, it
indicates that the status item parameter is illegal for this device. The requested status code is invalid
for the selected device.
A list of supported getstatus command values for the parameter parameter for a source-measure
unit (SMU) and a pulse card (VPU) are provided in the following tables.
No status values are provided for measurement-specific conditions.
Supported SMU getstatus query parameters
SMU parameter Returns Comment
programmed
output value
Current value (I output value)
Voltage value (V output value)
programmed
range
Current range (full-scale range value, or 0.0
for autorange)
Voltage range (full-scale range value, or 0.0
for autorange)
active range
Current range (full-scale range value)
Voltage range (full-scale range value)
status of last
reading
2 = LIMIT (at the compliance limit set by
limitX)
4 = RANGE (at the top of the range set by
rangeX)
compliance
status of last
reading
Returns 1 if in range compliance