Section 13: LPT library function reference
Model 4200A-SCS Parameter Analyzer Reference Manual
13-26
4200A-901-01 Rev. C / February 2017
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 (1 to 30; 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