Programming instructions

Getting Started
Using GPIB
Chapter 1 13
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 I/O
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 generator, and stores the data into a specified buffer. The
parameter list includes the instrument address and session id.
SICL The Agilent SICL function reads formatted data, converts it, and stores the
results into the argument list. The conversion is done using conversion rules
for the format string. The parameter list includes the instrument address,
formatted data to read, and so forth.
Table 1-11
Agilent BASIC VISA NI-488.2 Agilent SICL
10 ENTER 719; viScanf (parameter
list)
ibrd (parameter list) iscanf (parameter list)