
Section 3: LPTLib command reference
S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
3-36
S530-900-01 Rev. E / September 2017
kibdefclr
This command defines the device-dependent command sent to an instrument connected to the GPIB1 interface.
Usage
int kibdefclr(int
pri_addr
, int
sec_addr
, unsigned int
timeout
, double
delay
, unsigned
int
snd_size
, char *
sndbuffer
);
pri_addr
The primary address of the instrument (0 to 30; the controller uses address 31)
sec_addr
The secondary address of the instrument (1 to 30; if the instrument device does not
support secondary addressing, this parameter must be -1)
timeout
The GPIB timeout for the transfer in 100 ms units (for example,
timeout = 40 = 4.0 s)
delay
The time to wait after the device-dependent string is sent to the device, in seconds
snd_size
The number of bytes to send over the GPIB interface
sndbuffer
The physical byte buffer containing the data to send over the bus (the physical
CLEAR string); a maximum of 1024 bytes is allowed
Details
This string is sent during any normal tester-based
devclr
command. It ensures that if the tester is
calling the
devclr
command internally, any external GPIB device is cleared with the given string.
Each call to the
kibdefclr
and
kibdefint
commands copies parameters into a data structure
within the tester memory. These data structures are allocated dynamically. These tables are cleared
when the
devint
command executes. Any strings previously defined must be redefined.
The tester system allows you to define a maximum of 20 clear and 20 initialization strings. Each string
may contain up to a maximum of 1024 bytes.
Strings are sent over the GPIB interface in a first-in, first-out queue. This means that the first call to
the
kibdefclr
or
kibdefint
command is the first string sent over the GPIB. The
devclr
(
kibdefclr
) strings are always sent before initialization.
The KIBLIB
devclr
strings are sent before the
devclr
and
devint
commands execute. This may
be a problem when communicating with any Keithley-supported GPIB instruments. This may also
have an effect on the
bsweep
X
command, because the
bsweep
X
command sends a call to the
devclr
command to clear active sources. It is not recommended to use GPIB instruments when
performing tests with the
bsweep
X
command.
Also see
(on page 3-15)
(on page 3-26)
(on page 3-26)