Chapter 1 11
Getting Started
Using GPIB
Output Function
The Agilent BASIC IO function OUTPUT and the other listed IO library functions put the signal generator
into a listen mode and prepare it to receive ASCII data, typically SCPI commands.
Agilent BASIC The function OUTPUT 719 puts the signal generator into remote mode, makes it a
listener, and prepares it to receive data.
VISA Library The VISA library uses the above function and associated parameter list to output data.
This function formats according to the format string and sends data to the device. The
parameter list describes the session id and data to send.
NI-488.2
Library The NI-488.2 library function addresses the GPIB and writes data to the signal
generator. The parameter list includes the instrument address, session id, and the data to
send.
SICL The Agilent SICL function converts data using the format string. The format string
specifies how the argument is converted before it is output. The function sends the
characters in the format string directly to the instrument. The parameter list includes the
instrument address, data buffer to write, and so forth.
Enter Function
The Agilent BASIC function ENTER reads formatted data from the signal generator. Other IO libraries use
similar functions to read data from the signal generator.
Agilent BASIC The function ENTER 719 puts the signal generator into remote mode, makes it a talker,
and assigns data or status information to a designated variable.
VISA Library The VISA library uses the viScanf function and an associated parameter list to receive
data. This function receives data from the instrument, formats it using the format string,
and stores the data in the argument list. The parameter list includes the session id and
string argument.
NI-488.2
Library The NI-488.2 library function addresses the GPIB, reads data bytes from the signal
Agilent BASIC VISA NI-488.2 Agilent SICL
10 OUTPUT 719 viPrintf(parameter
list)
ibwrt(parameter
list)
iprintf (parameter
list)
Agilent BASIC VISA NI-488.2 Agilent SICL
10 ENTER 719; viScanf (parameter list) ibrd (parameter list) iscanf (parameter list)