Keithley 4200-SCS Reference Manual page 643

Semiconductor characterization system
Hide thumbs Also See for 4200-SCS:
Table of Contents

Advertisement

Model 4200-SCS Reference Manual
kibsnd
Keithley GPIB send
Purpose
Format
Remarks
Keithley GPIB serial poll
kibspl
Purpose
Format
4200-901-01 Rev. S / May 2017
Sends a device-dependent command to an instrument connected to the GPIB
interface.
int kibsnd(int pri_addr, int sec_addr, unsigned int timeout,
unsigned int send_len, char *send_buff);
The primary address of the instrument; 1 through 30 is valid. The
pri_addr
controller uses GPIB address 31.
The secondary address of the instrument; 1 through 30 is valid. If
sec_addr
the instrument device does not support secondary addressing, this
parameter must be -1.
The GPIB transfer timeout. This timeout is in 100 ms units (for
timeout
example, timeout = 40 = 4.0 s).
The number of bytes to send over the GPIB interface.
send_len
The physical byte buffer containing the data to send over the bus.
send_buff
kibsnd sends a buffer out the GPIB interface by performing the following steps:
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 Send_Buff 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.
Serial polls an instrument connected to the GPIB interface.
int kibspl(int pri_addr, int sec_addr, unsigned int timeout,
int *statusbyte);
The primary address of the instrument; 1 through 30 is valid (the
pri_addr
controller uses GPIB address 31).
The secondary address of the instrument; 1 through 30 is valid. If
sec_addr
the instrument device does not support secondary addressing, this
parameter must be -1.
The GPIB polling timeout. This timeout is in l00 ms units (for
timeout
example, timeout = 40 = 4.0 s).
The serial poll status byte returned by the device presently being
statusbyte
polled. The statusbyte variable must be an integer.
Return to
Section Topics
Section 8: Keithley User Library Tool (KULT)
8-127

Advertisement

Table of Contents
loading

Table of Contents