Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 71
Programming Examples
GPIB Programming Interface Examples
Clear Function
The HP Basic function
CLEAR
and the other listed IO library functions clear the
signal generator.
Output Function
The HP 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.
Library
Function Statement
Initialization Command
HP Basic
The
CLEAR 719
function halts all pending
output-parameter operations, resets the parser (interpreter of
programming codes) and prepares for a new programming
code, stops any sweep in progress, and turns off continuous
sweep.
10 CLEAR 719
VISA Library
The VISA library uses the viClear function. This function
performs an IEEE 488.1 clear of the signal generator.
viClear (ViSession
vi)
NI-488.2
The NI-488.2 library function sends the GPIB Selected Device
Clear (SDC) message to the device described by
ud
.
ibclr (int ud)
SICL
The Keysight SICL function clears a device or interface. The
function also discards data in both the read and write
formatted IO buffers. The
id
parameter identifies the session.
iclear (id)
Library
Function Statement
Initialization Command
HP Basic
The function
OUTPUT 719
puts the signal generator into
remote mode, makes it a listener, and prepares it to receive
data.
10 OUTPUT 719
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.
viPrintf
(parameter list)
NI-488.2
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.
ibwrt (parameter
list)
SICL
The Keysight 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.
iprintf (parameter
list)
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...