2 - 2 GETTING STARTED WITH SCPI PROGRAMMING
The parameters of these drivers are defined by the device handler GPIB.COM
and by the QuickBASIC program code. The following drivers and parameters are
used in the program examples:
•
The IEEE-488.2 driver "Send" is used to send a command or query to an
instrument.
CALL Send (<board>, <address>, <command>, <eot>)
•
The IEEE-488.2 driver "SendSetup" is used to prepare one or more devices
to receive data bytes. The controller becomes talker and the device becomes
listener.
CALL SendSetup (<board>, <addresslist>)
•
The IEEE-488.2 driver "SendDataBytes" is used to send data bytes from a
talking controller to a listening device.
CALL SendDataBytes (<board>, <data>, <eot>)
•
The IEEE-488.2 driver "Receive" is used to read a response string from an
instrument.
CALL Receive (<board>, <address>, <response>, <term>)
•
The IEEE-488.2 driver "SendIFC" is used to clear the GPIB interface.
CALL SendIFC (<board>)
•
The IEEE-488.2 driver "IbTMO" is used to specify a time out period for the
interface board.
CALL IbTMO (<board>, <timeout>)
Explanation of the parameters used in the IEEE-488.2 drivers:
•
<board> IEEE board identification inside the PC (default board
address = 0).
•
<address> IEEE instrument address (default CombiScope instrument
address = 8).
•
<addresslist> Array containing GPIB device addresses, terminated by the
constant -1 (FFFF hex.).
•
<command> A command or query string to be sent to the instrument. The
"short form" commands are specified in UPPER CASE. The
additional characters in lower case complete the "long form"
commands.
•
<data> One or more data characters to be sent to the listener device.