13: LPT library function reference Model 4200A-SCS Parameter Analyzer
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);
The primary address of the instrument (2 to 31)
The secondary address of the instrument (1 to 31; if the instrument device does not
support secondary addressing, this parameter must be
−
The GPIB polling timeout in 100 ms units (for example, a timeout of 40 = 4.0 s)
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
kibspl (on page 13-27)
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);
The RS-232 port to be used; only port 1 is supported
The transmission rate to be used; valid rates are 2400, 4800, 9600, 14400, and
19200 baud
The number of data bits to be used; valid inputs are
or
bits
Determines whether or not parity bits will be transmitted; valid inputs are: 0 (no
parity),
(odd parity), or
(even parity)
Sets the number of stop bits to be transmitted;
or
Determines the type of flow control to be used: 0 (no flow control), 1 (XON/XOFF
flow control), or 2 (hardware)