Model 4200A-SCS Parameter Analyzer Reference Manual
Section 13: LPT library function reference
4200A-901-01 Rev. C / February 2017
13-27
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
The primary address of the instrument (0 to 30; the controller uses address 31)
sec_addr
The secondary address of the instrument (1 to 30; 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, timeout = 40 = 4.0 s)
serial_poll_byte
The serial poll status byte returned by the device presently being polled
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
(on page 13-28)