
S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
Section 3: LPTLib command reference
S530-900-01 Rev. E / September 2017
3-39
kibsnd
This command sends a device-dependent command to an instrument connected to the GPIB interface.
Usage
int kibsnd(int
pri_addr
, int
sec_addr
, unsigned int
timeout
, unsigned int
send_len
, char
*
send_buff
);
pri_addr
The primary address of the instrument (0 to 30; the controller uses address 31)
sec_addr
The secondary address of the instrument (0 to 31; if the instrument device does not
support secondary addressing, this parameter must be -1)>
timeout
The GPIB timeout for the transfer in 100 ms units (for example,
timeout = 40 = 4.0 s)
send_len
The number of bytes to send over the GPIB interface
send_buff
The physical byte buffer containing the data to send over the bus
Details
The
kibsnd
command sends a buffer out through the GPIB interface by doing the following:
1.
Assert attention (ATN).
2.
Send device LISTEN address.
3.
Send secondary address (if not -1).
4.
Send my TALK address.
5.
De-assert ATN.
6.
Send the
send_buff
parameter with end-or-identify (EOI) asserted with the last byte.
7.
Assert ATN.
8.
Send UNTalk (UNT).
9.
Send UNListen (UNL).
10. De-assert ATN.
Also see
None