Programming instructions
Getting Started
Using GPIB
Chapter 112
Clear Function
The Agilent BASIC function CLEAR and the other listed I/O library functions cause the signal
generator to assume a cleared condition.
Agilent BASIC The CLEAR 719 function causes all pending output-parameter operations to
be halted, the parser (interpreter of programming codes) to reset and
prepare for a new programming code, stops any sweep in progress, and
continuous sweep to be turned off.
VISA Library The VISA library uses the viClear function. This function performs an IEEE
488.1 clear of the signal generator.
NI-488.2
Library The NI-488.2 library function sends the GPIB Selected Device Clear (SDC)
message to the device described by ud.
SICL The Agilent SICL function clears a device or interface. The function also
discards data in both the read and write formatted I/O buffers. The id
parameter identifies the session.
Output Function
The Agilent BASIC I/O function OUTPUT and the other listed I/O 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
Table 1-9
Agilent BASIC VISA NI-488.2 Agilent SICL
10 CLEAR 719 viClear(ViSession
vi)
ibclr(int ud) iclear (id)
Table 1-10
Agilent BASIC VISA NI-488.2 Agilent SICL
10 OUTPUT 719 viPrintf(parameter
list)
ibwrt(parameter
list)
iprintf (parameter
list)