3: LPTLib command reference S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
3-40 S530-900-01 Rev. E / September 2017
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);
The primary address of the instrument (0 to 30; the controller uses address 31)
The secondary address of the instrument; numbers 0 through 31 are valid; if the
instrument device does not support secondary addressing, this parameter must be
The GPIB polling timeout in 100 ms units (for example, timeout = 40 = 4.0 s)
The variable name for the serial poll byte returned by the current; must be 4 bytes
long
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)
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 3-41)