
S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
Section 3: LPTLib command reference
S530-900-01 Rev. E / September 2017
3-41
kibsplw
This command synchronously serial polls an instrument connected to the GPIB interface.
Usage
int kibsplw(int
pri_addr
, int
sec_addr
, unsigned int
timeout
, int *
serial_poll_byte
);
pri_addr
The primary address of the instrument (0 to 30)
sec_addr
The secondary address of the instrument (0 to 31; if the instrument device does not
support secondary addressing, this parameter must be
−
1)
timeout
The GPIB polling timeout in 100 ms units (for example, a timeout of 40 = 4.0 s)
serial_poll_byte
The serial poll status byte variable name returned by the device presently being
polled
Details
This command waits for SRQ to be asserted on the GPIB by any device. After SRQ is asserted, a
serial poll sequence is initiated for the device and the serial poll status byte is returned.
The
kibsplw
command does the following:
1.
Waits with timeout for general SRQ assertion on the GPIB.
2.
Calls the
kibspl
command.
Also see
(on page 3-40)
limitX
This command allows the programmer to specify a current or voltage limit other than the default limit of the
instrument.
Usage
int limiti(int
instr_id
, double
limit_val
);
int limitv(int
instr_id
, double
limit_val
);
instr_id
The instrument identification code of the instrument on which to impose a source
value limit;
SMU
n
,
PSRC
n
limit_val
The maximum level of the current or voltage; see
Details
Details
The parameter
limit_val
is bidirectional. For example, the command
limitv(SMU1, 10.0)
limits
the voltage of the current source SMU1 to ±10.0 V. The command
limiti(SMU1, 1.5E-3)
limits
the current of the voltage source SMU1 to ±1.5 mA.
Use the
limiti
command to limit the current of a voltage source. Use the
limitv
command to limit
the voltage of a current source.
If the instrument is ranged below the programmed limit value, the instrument will temporarily limit to
full scale of range.