Kibspl - Keithley 4200A-SCS Reference Manual

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

Advertisement

Model 4200A-SCS Parameter Analyzer Reference Manual

kibspl

This command serial polls an instrument connected to the GPIB interface.
Usage
int kibspl(int pri_addr, int sec_addr, unsigned int timeout,
int *serial_poll_byte);
pri_addr
sec_addr
timeout
serial_poll_byte
Details
The kibspl command does the following:
1. Assert attention (ATN).
2. Send serial poll enable (SPE).
3. Send LISTEN address.
4. Send device TALK address.
5. Send secondary address (if not -1).
6. De-assert ATN.
7. Poll GPIB interface until data is available.
8. Read the serial_poll_byte parameter from the device (if data is available), else
serial_poll_byte = 0 (indicating error; device not SRQing).
9. Assert ATN.
10. Send serial poll disable (SPD).
11. Send UNTalk (UNT).
12. Send UNListen (UNL).
13. De-assert ATN.
Also see
kibsplw
(on page 13-28)
4200A-901-01 Rev. C / February 2017
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 polling timeout in 100 ms units (for example, timeout = 40 = 4.0 s)
The serial poll status byte returned by the device presently being polled
Section 13: LPT library function reference
13-27

Advertisement

Table of Contents
loading

Table of Contents