Kibsplw; Kspcfg - Keithley 4200A-SCS Reference Manual

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

Advertisement

Section 13: LPT library function reference

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
sec_addr
timeout
serial_poll_byte
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);
port
baud
databits
parity
stopbits
flowctl
13-28
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 −1)
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
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 7 or 8 bits
Determines whether or not parity bits will be transmitted; valid inputs are: 0 (no
parity), 1 (odd parity), or 2 (even parity)
Sets the number of stop bits to be transmitted; 1 or 2
Determines the type of flow control to be used: 0 (no flow control), 1 (XON/XOFF
flow control), or 2 (hardware)
Model 4200A-SCS Parameter Analyzer Reference Manual
4200A-901-01 Rev. C / February 2017

Advertisement

Table of Contents
loading

Table of Contents