Kibdefint - Keithley 4200A-SCS Reference Manual

Parameter
Hide thumbs Also See for 4200A-SCS:
Table of Contents

Advertisement

Section 13: LPT library function reference

kibdefint

This command defines a device-dependent command sent to an instrument connected to the GPIB interface.
Usage
int kibdefint(int pri_addr, int sec_addr, unsigned int timeout, double delay,
unsigned int snd_size, char *snd_buff);
pri_addr
sec_addr
timeout
delay
snd_size
snd_buff
Details
This string is sent during any normal tester-based call to the devint command. It ensures that if the
tester is calling the devint command internally, any external GPIB device is initialized with the rest
of the known instruments.
Each call to kibdefclr copies parameters into a data structure within the tester memory. These
data structures are allocated dynamically. After the execution of the command buffer using execut,
these tables are cleared. 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. Once defined, these strings remain in effect until the
execut statement is processed.
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 bsweepX command, because the bsweepX 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 bsweepX command.
Also see
bsweepX
(on page 13-65)
devclr
(on page 13-67)
devint
(on page 13-13)
execut
(on page 13-16)
kibdefclr
(on page 13-22)
13-24
The primary address of the instrument (0 to 30; the controller uses address 31)
The secondary address of the instrument (1 to 30; if the instrument device does not
support secondary addressing, this parameter must be -1)
The GPIB timeout for the transfer in 100 ms units (for example,
timeout = 40 = 4.0 s)
The time to wait after the device-dependent string is sent to the device, in seconds
The number of bytes to send over the GPIB interface
The physical byte buffer containing the data to send over the bus (the INITIALIZE
string); a maximum of 1024 bytes is allowed
Model 4200A-SCS Parameter Analyzer Reference Manual
4200A-901-01 Rev. C / February 2017

Advertisement

Table of Contents
loading

Table of Contents