Section 13: LPT library function reference
Model 4200A-SCS Parameter Analyzer Reference Manual
13-28
4200A-901-01 Rev. C / February 2017
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 (2 to 31)
sec_addr
The secondary address of the instrument (1 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
kspcfg
This command configures and allocates a serial port for RS-232 communications.
Usage
int kspcfg(int
port
, int
baud
, int
databits
, int
parity
, int
stopbits
, int
flowctl
);
port
The RS-232 port to be used; only port 1 is supported
baud
The transmission rate to be used; valid rates are 2400, 4800, 9600, 14400, and
19200 baud
databits
The number of data bits to be used; valid inputs are
7
or
8
bits
parity
Determines whether or not parity bits will be transmitted; valid inputs are:
0
(no
parity),
1
(odd parity), or
2
(even parity)
stopbits
Sets the number of stop bits to be transmitted;
1
or
2
flowctl
Determines the type of flow control to be used:
0
(no flow control),
1
(XON/XOFF
flow control), or
2
(hardware)