The WILTRON product(s) listed on the title page is (are) warranted against defects in materials
and workmanship for one year from the date of shipment, except for YIG-tuned oscillators and all
WILTRON manufactured microwave components, which are warranted for two years.
WILTRON’s obligation covers repairing or replacing products which prove to be defective during the
warranty period. Buyers shall prepay transportation charges for equipment returned to WILTRON
for warranty repairs. Obligation is limited to the original purchaser. WILTRON is not liable for
consequential damages.
LIMITATION OF WARRANTY
The foregoing warranty does not apply to WILTRON connectors that have failed due to normal wear.
Also, the warranty does not apply to defects resulting from improper or inadequate maintenance by
the Buyer, unauthorized modification or misu se, or operation outside of the environmental spec ifications of the product. No other warranty is expressed or implied, and the remedies provided herein
are the Buyer’s sole and exclusive remedies.
TRADEMARK ACKNOWLEDGEMENTS
Adobe Acrobat is a registered trademark of Adobe Systems Incorporated.
NOTICE
WILTRON Company has prepared this manual for use by WILTRON Company personnel and
customers as a guide for the proper installation, operation, and maintenance of WILTRON Company
equipment and computor programs. The drawings, specifications, and information contained herein
are the property of WILTRON Company, and any unauthorized use or disclosure of these drawings,
specifications, and information is prohibited; they shall not be reproduced, copied, or used in whole
or in part as the basis for manufacture or sale of the equipment or software programs wit hout the
prior writtten consent of WILTRON Company.
TABLE OF CONTENTS
Chapter 1 — General GPIB Information
Chapter 1 provides a general description of the General Purpose Interface Bus (GPIB) and the bus
data transfer and control functions. It also contains a listing of the 682XXB/683XXB’s GPIB interface function subset capability and response to IEEE-488 interface function messages. Chapter contents are detailed immediately following the tab.
Chapter 2 — Programming with SCPI Commands
Chapter 2 provides an introduction to SCPI programming that includes descriptions of the command types, hierarchial command structure, data parameters, and notational conventions. Information on 682XXB/683XXB stat us system and trigger sys tem programming is also prov ided. Chapter
contents are detailed immediately follo wing the tab.
Chapter 3 — Programming Commands
Chapter 3 contains information on all SCPI programming commands accepted and implemented by
the Series 682XXB/683XXB Synthesized Signal Generators. Chapter contents are detailed immediately following the tab.
Chapter 4 — Error Messages
Chapter 4 lists and describes each of the error messages related to 682XXB/683XXB signal generator operation. In addition, it provides information about the error message elements, the error
query command, the error queue, and the classes of error messages . Chapter contents are detailed
immediately following the tab.
Appendix A — Overall Command Tree
Appendix A provides an overall command tree for the Series 682XXB/683XXB SCPI command set.
Appendix B — SCPI Conformance Information
Appendix B provides SCPI conformance information for the Series 682XXB/683X XB SCPI command set in the form of a command summary.
Selecting the Interface Language . . . . . . . . . 1-13
Response to GPIB Interface Function Messages . 1-13
Chapter 1
General GPIB Information
1-1
SCOPE OF MANUAL
This manual provides information for remote operation of the Series
682XXB/683XXB Synthesized Signal Generators using commands
sent from an external controller via the IEEE-488 General Purpose Interface Bus (GPIB). It includes the following:
A general description of the GPIB and the bus data transfer and
control functions.
A listing of the IEEE-488 Interface Function Messages recognized by the signal generator with a description of its response.
A c omplete listing and description of all the Standard Commands
for Programmable Instruments (SCPI) commands that can be
used to control signal generator operation with examples of command usage.
This manual is intended to be used in conjunction with the Series
682XXB/683XXB Synthesized Signal Generators Operation Manual,
P/N 10370-10284. Refer to that manual for general information about
the 682XXB/683XXB, including equipment set up and front panel
(manual mode) operating instructions.
Electronic
Manual
This manual is available on CD ROM as an Adobe
Acrobat Portable Document Format (∗.pdf) file. The
file can be viewed using Acrobat Reader, a free program that is also included on the CD ROM. The file
is “linked” such that the viewer can choose a topic to
view from the displayed “bookmark” list and “jump”
to the manual page on which the topic resides. The
text can also be word-searched. Contact WILTRON
Custormer Service for price and availability.
GPIB Programming
Manual
In addition to the SCPI programming commands
described in this manual, the signal generator’s
GPIB interface also accepts and implements a set of
682XXB/683XXB GPIB Product-Specific
(“NATIVE”) commands. These GPIB commands are
listed and described in the Series 682XXB/683XXB
Synthesized Signal Generators GPIB Programming
Manual, P/N 10370-10286.
682XXB/683XXB SCPI PM1-3
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
IEEE-488 BUS (16 Lines)
DEVICE A
Able to talk, listen,
and control
(e.g. COMPUTER)
DEVIC E B
Able to talk and listen
(e.g. 682XXB/683XXB
SIGNAL
GENERATOR)
DEVICE C
Data Bus
(8 signal lines)
Data Byte Transfer
Control Bus
(3 sign al l in es )
DATA LINES
HANDSHAKE Lines
Only able to listen
(e.g. OTHER
INSTRUMENT**)
DEVICE D
Only able to talk
(e.g. OTHER
INSTRUMENT**)
General Interface
Management Bus
(5 sign al l in es )
DATA
INPUT/OUTPUT, DIO
1 thru DIO 8
DAV - DATA VALID
NRFD - NOT READY FOR DATA*
NDAC - NOT DATA ACCEPTED*
IFC - INTERFACE CLEAR
ATN - ATTENT ION
SRQ - SERVI CE REQUE ST
REN - REMOTE ENABLE
EOI - END OR IDEN TI FY
* NEGATION IS REPRESENTED BY
LOW STATE ON THESE TWO
LINES
** IF USED
Figure 1-1. Interface Connections and GPIB Bus Structure
Management
CONTROL Lines
1-4682XXB/683XXB SCPI PM
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
1-2
1-3
INTRODUCTION
IEEE-488 INTERFACE
BUS DESCRIPTION
This chapter provides a general description of the GPIB and the bus
data transfer and control functions. It also contains a listing of the
682XXB/683XXB’s GPIB interface function subset capability and response to IEEE-488 interface function messages.
The GPIB information presented in this chapter is general in nature.
For complete and specific information, refer to the following documents: ANSI/IEEE Std 488.1-1987 IEEE Standard Digital Interface
for Programmable Instrumentation and ANSI/IEEE Std 488.2-1987
IEEE Standard Codes, Formats, Protocols and Common Commands.
These documents precisely define the total specification of the mechanical and electrical interface, and of the data transfer and control
protocols.
The IEEE-488 General Purpose Interface Bus (GPIB) is an instrumentation interface for integrating instruments, computers, printers, plotters, and other measurement devices into systems. The GPIB uses 16
signal lines to effect transfer of information between all devices connected on the bus.
The following requirements and restrictions apply to the GPIB.
No more than 15 devices can be interconnected by one contiguous
bus; however, an instrumentation system may contain more than
one interface bus.
The maximum total cumulative cable length for one interface
bus may not exceed twic e the number of devices connected (in meters), or 20 meters—whichever is less.
A maximum data rate of 1 Mb/s across the interface on any signal line.
Each device on the interface bus must have a unique address,
ranging from 00 to 30.
The devices on the GPIB are connected in parallel, as shown in Figure
1-1. The interface consists of 16 signal lines and 8 ground lines in a
shielded cable. Eight of the signal lines are the data lines, DIO 1 thru
DIO 8. These data lines carry messages (data and commands), one
byte at a time, among the GPIB devices. Three of the remaining lines
are the handshake lines that control the transfer of message bytes between devices. The five remaining signal lines are referred to as interface management lines.
The following paragraphs provide an overview of the GPIB including a
description of the functional elements, bus structure, bus data transfer process, interface management bus, device interface function requirements, and message types.
682XXB/683XXB SCPI PM1-5
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
Functional
Elements
Effective communications between devices on the
GPIB requires three functional elements; a talker, a
listener, and a controller. Each device on the GPIB
is categorized as one of these elements depending
on its current interface function and capabilities.
Talker
A talker is a device capable of sending device-dependent data to another device on the bus when addressed to talk. Only one GPIB device at a time can
be an active talker.
Listener
A listener is a device capable of receiving device-dependent data from another device on the bus when
addressed to listen. Any number of GPIB devices
can be listeners simultaneously.
Controller
A c on troller is a device, usually a computer, capable
of managing the operation of the GPIB. Only one
GPIB device at a time can be an active controller.
The active controller manages the transfer of devicedependent data between GPIB devices by designating who will talk and who will listen.
System Controller
The system controller is the device that always retains ultimate control of the GPIB. When the system is first powered-up, the system controller is the
active controller and manages the GPIB. The system controller can pass control to a device, making
it the new active controller. The new active controller, in turn, may pass control on to yet another device. Even if it is not the active controller, the
system controller maintains control of the Interface
Clear (IFC) and Remote Enable (REN) interface
management lines and can thus take con trol of the
GPIB at anytime.
1-6682XXB/683XXB SCPI PM
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
Bus
Structure
The GPIB uses 16 signal lines to carry data and
commands between the devices connected to the
bus. The interface signal lines are organized into
three functional groups.
Data Bus (8 lines)
Data Byte Transfer Control Bus (3 lines)
General Interface Management Bus (5 lines)
The signal lines in each of the three groups are designated according to function. T able 1-1 lists these
designations.
Table 1-1. Interface Bus Signal Line Designations
DAV
NRFD
NDAC
ATN
IFC
SRQ
REN
EOI
Signal Line
Name
Function
Data Availa ble
Not Ready For Data
Not Data Accepted
Attention
Interface Clear
Service Request
Remote Enable
End Or Identify
Bus Type
Data BusD IO1–DIO8Data Input/Output, 1 thru 8
Data Byte
Transfer
Control Bus
General
Interface
Management
Bus
Data Bus
Description
The data bus is the conduit for the transfer of data
and commands between the devices on the GPIB. It
contains eight bi-directional, active-low signal lines
—DIO 1 thru DIO 8. Data and commands are transferred over the data bus in byte-serial, bit-parallel
form. This means that one byte of data (eight bits)
is transferred over the bus at a time. DIO 1 represents the least-significant bit (LSB) in this byte and
DIO 8 represents the most-significant bit (MSB).
Bytes of data are normally formatted in seven-bit
ASCII (American Standard Code for Information Interchange) code. The eighth (parity) bit is not used.
Each byte placed on the data bus represents either
a command or a data byte. If the Attention (ATN) interface management line is TRUE while the data is
transferred, then the data bus is carrying a bus command which is to be received by every GPIB device.
If ATN is FALSE, then a data byte is being transferred and only the active listeners will receive that
byte.
682XXB/683XXB SCPI PM1-7
GENERAL GPIBIEEE-488 INTERFACE
1st Data Byte2nd Data Byte
Valid
Not
Valid
Valid
Not
Valid
All
Ready
None
Ready
All
Ready
None
Ready
All
Accept
None
Accept
None
Accept
All
Accept
DIO1-DIO8
(composite)
DAV
NRFD
NDAC
INFORMATIONBUS DESCRIPTION
Figure 1-2. Typical GPIB Handshake Operation
Data Byte
Transfer
Control Bus
Description
Control of the transfer of each byte of data on the
data bus is accomplished by a technique called the
“three-wire handshake”, which involves the three
signal lines of the Data Byte Transfer Control Bus.
This technique forces data transfers at the speed of
the slowest listener, which ensures data integrity in
multiple listener transfers. One line (DAV) is controlled by the talker, while the other two (NRFD
and NDAC) are wired-OR lines shared by all active
listeners. The handshake lines, like the other GPIB
lines, are active low. The technique is described
briefly in the following paragraphs and is depicted
in Figure 1-2. For further information, refer to
ANSI/IEEE Std 488.1.
DAV (Data Valid)
This line is controlled by the active talker. Before
sending any data, the talker verifies that NDAC is
TRUE (active low) which indicates that all listeners
have accepted the previous data byte. The talker
then places a byte on the data lines and waits until
NRFD is FALSE (high) which indicates that all addressed listeners are ready to accept the information. When both NRFD and NDAC are in the proper
state, the talker sets the DAV line TRUE (active
low) to indicate that the data on the bus is valid
(stable).
NRFD (Not Ready For Data)
This line is used by the listeners to inform the
talker when they are ready to accept new data. The
talker must wait for each listener to set the NRFD
line FALSE (high) which they will do at their own
1-8682XXB/683XXB SCPI PM
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
rate. This assures that all devices that are to accept
the data are ready to receive it.
NDAC (Not Data Accepted)
This line is also controlled by the listeners and is
used to inform the talker that each device addressed to listen has accepted the data. Each device
releases NDAC at its own rate, but NDAC will not
go FALSE (high) until the slowest listener has accepted the data byte.
General
Interface
Management
Bus
Description
The general interface management bus is a group of
five signal lines used to manage the flow of information across the GPIB. A description of the function
of each of the individual control lines is provided below.
ATN (Attention)
The active controller uses the ATN line to define
whether the information on the data bus is a command or is data . When ATN is TRUE (low), the bus
is in the command mode and the data lines carry
bus commands. When ATN is FALSE (high), the bus
is in the data mode and the data lines carry devicedependent instructions or data.
EOI (End or Identify)
The EOI line is used to indicate the last byte of a
multibyte data transfer. The talker sets the EOI
line TRUE during the last data byte.
The active controller also uses the EOI line in conjunction with the ATN line to initiate a parallel poll
sequence.
IFC (Interface Clear)
Only the system controller uses this line. When IFC
is TRUE (low), all devices on the bus are placed in a
known, quiescent state (unaddressed to talk, unaddressed to listen, and service request idle).
REN (Remote Enable)
Only the system controller uses this line. When
REN is set TRUE (low), the bus is in the remote
mode and devices are addressed either to listen or
to talk. When the bus is in remote and a device is
addressed, it receives instructions from the GPIB
rather than from its front panel. When REN is set
FALSE (high), the bus and all devices return to local operation.
682XXB/683XXB SCPI PM1-9
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
SRQ (Service Request)
The SRQ line is set TRUE (low) by any device requesting service by the active controller.
Device
Interface
Function
Capability
An interface function is the GPIB system element
which provides the basic operational facility
through which a device can receive, process, and
send messages. Each specific interface function may
only send or receive a limited set of messages
within particular classes of messages. As a result, a
set of interface functions is necessary to achieve
complete communications among devices on the
GPIB. ANSI/IEEE Std 488.1 defines each of the
interface functions along with its specific protocol.
ANSI/IEEE Std 488.2 specifies the minimum set of
IEEE 488.1 interface capabilities that each GPIB device must have. This minimum set of interface functions assures that the device is able to send and
receive data, request service, and repond to a device
clear message. Table 1-2 lists the interface function
capability of the series 682XXB/683XXB signal generators.
Table 1-2. 682XXB/683XXB Interface Function Capability
Function
Identifier
AH1Acceptor HandshakeComplete Capability
Function682XXB/683XXB Capability
SH1Source HandshakeCompl et e C ap ab il ity
T6TalkerNo Talk Only (TON)
L4 ListenerNo Listen Only (LON)
SR1Service RequestComplete Capabil it y
RL1Remote/LocalComplete Capab il it y
PP1Parallel PollComplete Capability
DC1Device ClearComplete Capability
DT1Device T r ig ge rComplete Capab il it y
C0, 1, 2, 3,28Controller Capability
Options
E2Tri-State DriversThree-state bus drivers
C0, No Capability;
C1, System Controller;
C2, Send IFC and Take Charge;
C3, Send REN;
C28, Send IF Messages
1-10682XXB/683XXB SCPI PM
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
Message
Types
There are three types of information transmitted
over the GPIB—interface function messages, devicespecific commands, and data and instrument status
messages.
Interface Function Messages
The controller manages the flow of information on
the GPIB using interface function messages, usually called commands or command messages. Inter-
face function messages perform such functions as
initializing the bus, addressing and unaddressing
devices, and setting device modes for remote or local
operation.
There are two types of commands—multiline and
uniline. Multiline commands are bytes sent by the
active controller over the data bus (DIO1-DIO8)
with ATN set TRUE. Uniline commands are signals
carried by the individual interface management
lines.
The user generally has control over these commands; however, the extent of user control depends
on the implementation and varies with the specific
GPIB interface hardware and software used with
the external controller.
Device-Specific Commands
These commands are keywords or mnemonic codes
sent by the external controller to control the setup
and operation of the addressed device or instrument. The commands are normally unique to a particular instrument or class of instruments and are
described in its documentation.
Device-specific commands are transmitted over the
data bus of the GPIB to the device in the form of
ASCII strings containing one or more keywords or
codes.They are decoded by the device’s internal con-troller and cause the various instrument functions
to be performed.
Data and Instrument Status Messages
These messages are sent by the device to the external controller via the GPIB. They contain measurement results, instrument status, or data files that
the device transmits over the data bus in response
to specific requests from the external controller. The
contents of these messages are instrument specific
and may be in the form of ASCII strings or binary
data.
682XXB/683XXB SCPI PM1-11
GENERAL GPIBIEEE-488 INTERFACE
INFORMATIONBUS DESCRIPTION
In some cases data messages will be transmitted
from the external controller to the device. For example, messages to load calibration data.
An SRQ (service request) is an interface function
message sent from the device to the external controller to request service from the controller, usually
due to some predetermined status condition or error. To send this message, the device sets the SRQ
line of the General Interface Management Bus true,
then sends a status byte on the data bus lines.
An SRQ interface function message is also sent by
the device in response to a serial poll message from
the controller, or upon receiving an Output Status
Byte(s) command from the controller. The protocols
associated with the SRQ functions are defined in
the ANSI/IEEE Std 488.2 document.
The manner in which interface function messages
and device-specific commands are invoked in programs is implementation specific for the GPIB interface used with the external controller. Even though
both message types are represented by mnemonics,
they are implemented and used in different ways.
Normally, the interface function messages are sent
automatically by the GPIB driver software in response to invocation of a software function. For example, to send the
fuction message, one would call the
the National Instruments software driver. On the
other hand, the command
command string to the addressed device. In the case
of the National Instruments example, this would be
done by using the
IFC (Interface Clear) interface
ibsic function of
*RST (Reset) is sent in a
ibwrt function call.
1-12682XXB/683XXB SCPI PM
GENERAL GPIB682XXB/683XXB
INFORMATIONGPIB OPERATION
1-4
682XXB/683XXB GPIB
OPERATION
All Series 682XXB/683XXB Synthesized Signal Generator functions,
settings, and operating modes (except for power on/standby) are controllable using commands sent from an external controller via the
GPIB. When in the remote (GPIB) mode, the signal generator functions as both a listener and a talker. The GPIB interface function capability of the 682XXB/683XXB is listed in Table 1-2 (page 1-10).
Setting GPIB
Operating
Parameters
Selecting the
Interface
Language
The 682XXB/683XXB leaves the factory with the
GPIB address value set to
terminator set to carriage return and line feed
CR/LF). A different address value can be entered
(
from the front panel using the Configure GPIB
menu. Using this same menu, the data delimiting
terminator can be changed to carriage return (
only. Refer to Chapter 2 of the Series 682XXB/
683XXB Synthesized Signal Generators Operation
Manual for the procedure.
Series 682XXB/683XXB Synthesized Signal Generators with Option 19 can be remotely operated us-
ing one of two external interface languages—Native
or SCPI. The Native interface language uses a set of
682XXB/683XXB GPIB Product Specific commands
to control the instrument; the SCPI interface language uses a set of the Standard Commands for Programmable Instruments commands to control the
unit. Selecting which of these external interface languages is to be used can be made from the front
panel using the Configure GPIB menu. Refer to
page 2-11 for the procedure.
5 and the data delimiting
CR)
Response to
GPIB
Interface
Function
Messages
Table 1-3 (page 1-14) lists the GPIB Interface Function Messages that the 682XXB/683XXB will recognize and respond to. With the exception of the
Device Clear and Selected Device Clear messages,
these messages affect only the operation of th e
682XXB/683XXB GPIB interface. The signal generator’s response for each message is indicated.
Interface function messages are transmitted on the
GPIB data lines and interface management lines as
either unad dressed or addressed commands. The
manner in which these messages are invoked in programs is implementation dependent. For programming information, refer to the documentation
included with the GPIB Interface used for the external controller.
682XXB/683XXB SCPI PM1-13
GENERAL GPIB682XXB/683XXB GPIB
INFORMATIONOPERATION
Table 1-3. 682XXB/683XXB Response to GPIB Interface Function Messages
Interface Function Message
Device Clear (DCL)
Selected Device Clear (SDC)
Go To Local (GTL)YesReturns the 682XXB/ 68 3XXB to
Group Execute Trigger
(GET)
Interface Clear (IFC)NoStops the 682XXB/683XXB GPIB
Local Lockout (LLO)NoDisables the front panel menu
Remote Enable (REN)NoPlaces the 682XXB/683XXB unde r
Serial-Poll Enable (SPE)NoOutputs the serial-poll status byte.
Serial-Poll Disable (SPD)NoDisables the serial-poll func ti on .
Parallel-Poll Configure (PPC)YesResponds to a parallel -po ll
Addressed
Command
No
Yes
YesExecute s a st r in g of commands, if
682XXB/683XXB Response
Resets the 682XXB/683XXB to its
default state. (Equivalent to sending
the *RST command.)
local (front panel) control.
programmed.
interface from listening or talking.
(The front panel controls are not
cleared.)
RETURN TO LOCAL soft-key.
remote (GPIB) control when it has
been addressed to listen.
message (PPOLL) by setting
assigned data bus line to the logi ca l
state (1,0) that indicates its correct
SRQ status.
Status Group Registers . . . . . . . . . . . . . . . 2-12
Status Group Reporting . . . . . . . . . . . . . . 2-14
2-6TRIGGER SYSTEM PROGRAMMING . . . . . . . 2-19
T rigger System Operation . . . . . . . . . . . . . 2-19
Chapter 2
Programming with
SCPI Commands
2-1
2-2
INTRODUCTION
INTRODUCTION TO SCPI
PROGRAMMING
This chapter provides an introduction to SCPI programming that includes descriptions of the command types, hierarchial command structure, data parameters, and notational conventions. Information on
682XXB/683XXB status system and trigger system programming is
also provided.
The Standard Commands for Programmable Instruments (SCPI) de-
fines a set of standard programming commands for use by all SCPI
compatible instruments. SCPI is intended to give the ATE user a consistent environment for program development. It does so by defining
controller messages, instrument responses, and message formats for
all SCPI compatible instruments. The IEEE-488 (GPIB) interface for
the 682XXB/683XXB was designed to conform to the requirements of
SCPI 1993.0. The set of SCPI commands implemented by the 682XXB/
683XXB GPIB interface provides a comprehensive set of programming
functions covering all the major functions of the 682XXB/683XXB signal generators.
SCPI
Command
Types
SCPI commands, which are also referred to as SCPI
instructions, are messages to the instrument to perform specific tasks. The 682XXB/683XXB command
set includes:
“Common” commands (IEE488.2 mandated
commands)
SCPI required commands
SCPI optional commands (per SCPI 1993.0)
SCPI compliant commands that are unique to
the 682XXB/683XXB.
The SCPI conformance information for the 682XXB/
683XXB command set is contained in Appendix B —
SCPI Conformance Information.
682XXB/683XXB SCPI PM2-3
PROGRAMMING WITHINTRODUCTION TO
SCPI COMMANDSSCPI PROGRAMMING
The required common commands are IEEE-488.2
mandated commands that are defined in IEEE-488.2
and must be implemented by all SCPI compatible instruments. These commands (see table at left) are
identified by the asterisk (∗) at the beginning of the
command keyword. These commands are used to
control instrument status registers, status reporting,
synchronization, and other common functions. The
common commands and their syntax are described
in detail in Chapter 3, paragraph 3-2.
The required SCPI commands are listed in the table
at left and are described in detail in Chapter 3, paragraphs 3-11 and 3-12. The optional SCPI commands
and 682XXB/683XXB unique commands comprise
the remainder (major portion) of the 682XXB/
683XXB command set. They control the majority of
the programmable functions of the 682XXB/683XXB.
They are described in detail in Chapter 3 starting at
paragraph 3-3.
All commands, unless specifically noted in the syntax descriptions in Chapter 3, have a query form. As
defined in IEEE-488.2, a query is a command with a
question mark symbol appended (examples: ∗
ESR?,
and :FREQuency:CENTer?). When a query form of a
command is received, the current setting associated
with the command is placed in the output buffer.
2-4682XXB/683XXB SCPI PM
PROGRAMMING WITHINTRODUCTION TO
SCPI COMMANDSSCPI PROGRAMMING
Command
Names
Typical SCPI commands consist of on e or more keywords, parameters, and punctuation. SCPI command keywords can be a mixture of upper and lower
case characters. Except for common commands, each
keyword has a long and a short form. In this manual, the long form is presented with the short form
in upper case and the remainder in lower case. For
example, the long form of the command keyword to
control the instrument display is:
The short form keyword is usually the first four characters of the long form (example:
The exception to this is when the long form is longer
than four characters and the fourth character is a
vowel. In such cases, the vowel is dropped and the
short form becomes the first three characters of the
long form. Example: the short form of the keyword
POWer is POW.
Some command keywords may have a numeric suffix
to differentiate between multiple instrument features such as dual channel inputs. For example: keywords
are used to differentiate between the 682XXB/
683XXB front panel and rear panel MODULATION connectors.
EXTernal1 and EXTernal2 (or EXT1 and EXT2)
DISPlay.
DISP for DISPlay).
As with any programming language, the exact command keywords and command syntax must be us ed.
The syntax of the individual commands is described
in detail in Chapter 3. Unrecognized versions of long
form or short form comma nds, or improper syntax,
will generate an error. Error reporting is described
in Chapter 4.
682XXB/683XXB SCPI PM2-5
PROGRAMMING WITHINTRODUCTION TO
SCPI COMMANDSSCPI PROGRAMMING
Hierarchical
Command
Structure
All SCPI commands, except the common commands,
are organized in a hierarchical structure similar to
the inverted tree file structure used in most computers. The SCPI standard refers to this structure as
“the Command Tree.” The command keywords that
correspond to the major instrument control functio ns
are located at the top of the command tree. The command keywords for the 682XXB/683XXB SCPI command set are shown in the diagram below.
root
:ABORt:CONTrol :DIAGnostic :DISPLAY:INITiate
:OUTPut:SOURce:STATus:SYSTem:TRIGger:UNIT
All 682XXB/683XXB SCPI commands, except the
ABORt command, have one or more subcommands
(keywords) associated with them to further define
the instrument function to be controlled. The subcommand keywords may in turn also have one or
more associated subcommands (keywords). Each subcommand level adds another layer to the command
tree. The command keyword and its associated subcommand keywords form a portion of the command
tree called a command subsystem. The
mand subsystem is shown below.
:CONTrol com-
:CONTrol
:BLANking:RAMP:PENLift
:POLarity:REST[:STATe]: TIME:POLarity
An overall command tree for the 682XXB/683XXB
SCPI command set is shown in Figure A-1 of Appendix A.
2-6682XXB/683XXB SCPI PM
PROGRAMMING WITHINTRODUCTION TO
SCPI COMMANDSSCPI PROGRAMMING
Data
Parameters
Data parameters, referred to simply as “parameters,” are the quantitative values used as arguments
for the command keywords. The parameter type associated with a particular SCPI command is determined by the type of information required to control
the particular instrument function. For example,
Boolean (
commands that control switch functions.
The command descriptions in Chapter 3 specify the
type of data parameter to be used with each command. The most commonly used parameter types
are numeric, extended numeric, discrete, and
Boolean.
Numeric
Numeric parameters comprise integer numbers, or
any number in decimal or scientific notation and
may include polarity signs. This includes
<NR2>, and <NR3> numeric data as defined in Parameter Notations on page 2-9. This type of numeric
element is abbreviated as
document.
Extended Numeric
Extended numeric parameters include values such
as MAXimum and MINimum.
ON | OFF) type parameters are used with
<NR1>,
<NRf> throughout this
Discrete
Discrete parameters, such as INTernal and EXTernal, are used to control program settings to a predetermined finite value or condition.
Boolean
Boolean parameters represent binary conditions and
may be expressed as
Unit SuffixesUnit suffixes are not required for data parameters,
provided the values are scaled for the global default
units. The 682XXB/683XXB SCPI default units are:
Hz (Hertz) for frequency related parameters and S
(seconds) for time related parameters. For example,
the command below sets the 682XXB/683XXB output frequency to 3 GHz.
:SOURce:FREQuency:CW 3000000000
The global default units may be changed via use of
The SCPI interface standardizes command syntax and style which
simplifies the task of programming across a wide range of instrumentation. As with any programming language, the exact command keywords and command syntax must be used. Unrecognized commands, or
improper syntax, will generate an error (refer to Chapter 4 for error reporting).
General
Notations
The syntax conventions that are used for all SCPI
command keywords and data parameter descriptions
in this manual are described below.
:A colon links command keywords together to
form commands. The colon is not an actual part
of the keyword but is a signal to the SCPI interface parser. A colon must precede a root keyword immediately following a semicolon. (See
Notational Examples on page 2-10.)
;A semicolon separates commands if multiple
commands are placed on a single program line.
(See Notational Examples on page 2-10.)
[]Square brackets enclose one or more optional
parameters.
{}Braces enclose one or more parameters that may
be included one or more times.
|A vertical bar indicates “or” and is used to
separate alternative parameter options.
Example:
<> Angle brackets enclose parameter descriptions.
::= means “is defined as.” For example:
<a>::=<b><c> indicates that <b><c> can
replace <a>.
sp
space(s), referred to as whitespace, must be used
to separate keywords from their associated data
parameters. It must not be used between keywords, or inside keywords .
XXX indicates a root command name.
For further information about SCPI command syn-
tax and style, refer to the Standard Commands forProgrammable Instruments (SCPI) 1993.0 document.
The following syntax conventions are used for all
data parameter descriptions in this manual.
<arg> ::=a generic command argument consisting
of one or more of the other data types.
<bNR1> ::=boolean values in <NR1> format;
numeric
<boolean>
<integer> ::=an unsigned integer without a decimal
<NR1> ::=a signed integer without a decimal point
<NR2> ::=a signed number with an explicit radix
<NR3> ::=a scaled explicit decimal point numeric
<NRf> ::=<NR1>|<NR2>|<NR3>
::=ON|OFF. Can also be represented as
1 or 0, where 1 means ON and 0 means OFF.
Boolean parameters are always returned as
1 or 0 in <NR1> format by query commands.
point (implied radix point)
(implied radix point).
point.
value with and exponent (e.g., floating point
number)
1 or 0
<nv>
::=SCPI numeric value: <NRf>|MIN|MAX|UP
|DOWN|DEF|NAN|INF|NINF
<char> ::=<CHARACTER PROGRAM DATA>.
Examples: CW, FIXed, UP, and DOWN,
<string>
<block>
<NA> ::=Not Applicable
::=<STRING PROGRAM DATA>.
ASCII characters surrounded by double
quotes, example:
::=IEEE-488.2 block data format
“OFF”
or other types
682XXB/683XXB SCPI PM2-9
PROGRAMMING WITH NOTATIONAL
SCPI COMMANDSCONVENTIONS
Notational
Examples
The following is an example showing command syntax (It is not an actual command):
[SOURce]:POWer[:LEVel][:IMMediate][:AMPLitude]
sp
:STEP[:INCRement]
Command statements read from left to right and
from top to bottom. In the command statement
above, the
:AMPLitude keyword with no separating space. A
space (
its argument (a
Note that the first keyword in the command string
does not require a leading colon; however, it is good
practice to always use a leading colon for all keywords. Note also that the
tional. This is a SCPI convention for all voltage or
signal source type instruments that allows shorter
command statements to be used.
The following is an example of a multiple command
statement that uses two seperate commands in a single statement. Note the semicolon used to join the
commands. (Also note the leading colon used immediately after the semicolon.)
The Series 682XXB/683XXB Synthesized Signal Generators can be re-
motely operated using one of two external interface languages—Native
or SCPI. (The Native interface language uses a set of 682XXB/683XXB
GPIB Product Specific commands to control the instrument.) Before
programming with SCPI commands it is necessary to select SCPI as
the external interface language.
Front Panel
Selection
SCPI can be selected as the 682XXB/683XXB interface language from the front panel Configure GPIB
menu.
To access the Configure GPIB Menu, first press the
SYSTEM main menu key on the front panel to ac-
cess the System Menu. At the menu display, press
Config to access the System Configuration Menu.
Then, press
played.
The Configure GPIB menu has an additional menu
display. Language selection is made from this additional menu. To access the additional menu, press
More . At the menu, press
SCPI. The language selection will appear on the display.
GPIB . The Configure GPIB Menu is dis-
SCPI/Native to select
Remote
Selection
SCPI can be selected as the 682XXB/683XXB interface language during remote operations.
To change the interface language from Native to
SCPI use the command
SYST:LANG "SCPI"
Do not use the long form of the command and do no t
use a leading colon (:) with the command. The com-
:SYSTem:LANGuage "SCPI" results in a syn-
mand
tax error.
NOTE
When the 682XXB/683XXB signal generator
is remotely operated using the SCPI interface lanuage, cycling the power returns the
instrument to a reset condition.
682XXB/683XXB SCPI PM2-11
PROGRAMMING WITHSTATUS SYSTEM
SCPI COMMANDSPROGRAMMING
2-5
STATUS SYSTEM
PROGRAMMING
The 682XXB/683XXB status system (shown in Figure 2-1) consists of
the following SCPI-defined status-reporting structures:
The Instrument Summary Status Byte Group
The Standard Event Status Group
The Operational Status Group
The Questionable Status Group
The following paragraphs describe the registers that make up a status
group and explain the status information that each status group provides.
Status Group
Registers
In general, a status group consists of a condition register, a transition filter, an event register, and an enable register. Each component is briefly described in
the following paragraphs.
Condition Register
The condition register is continuously updated to reflect the current status of the 682XXB/683XXB.
There is no latching or buffering for this register, it
is updated in real time. Reading the contents of a
condition register does not change its contents.
Transition Filter
The transition filter is a special register that specifies which types of bit state changes in the condition
register will set corresponding bits in the event register. Negative transition filters (NTR) are used to detect condition changes from True (1) to False (0);
postive transition filters (PTR) are used to detect
condition changes from False (0) to True (1). Setting
both positive and negative filters True allows an
event to be reported anytime the condition changes.
Transition filters are read-write. Transition filters
are unaffected by queries or ∗
RST commands.
∗
The command
sition filters to all 0’s and sets all positive transition
filters to all 1’s.
Event Register
The event register latches transition events from the
condition register as specified by the transition filter.
Bits in the event register are latched, and once set
they remain set until cleared by a query or a ∗
command. Event registers are read only.
:STATus:PRESet sets all negative tran-
CLS (clear status) and
CLS
2-12682XXB/683XXB SCPI PM
PROGRAMMING WITHSTATUS SYSTEM
SCPI COMMANDSPROGRAMMING
:STAT:QUES:EVEN?
:STAT:QUES:NTR
:STAT:QUES:PTR
:STAT:QUES:COND?
Not Used
Not Used
Not Used
RF Unleveled
Not Used
Lock Error or RF Unlocked
Not Used
Modulation Range Error
Not Used
SELF TEST FAILED
ANALOG SWEEP LOCK ERROR
XTAL OVEN FAILURE
Not Used
Not Used
Not Used
Not Used (= 0)
:STAT:OPER:COND?NTRPTR
Not Used
Not Used
Not Used
Sweeping
Measuring
Waiting for Trigger
Not Used
Not Used
Not Used
Self Test In Progress
Not Used
Not Used
Not Used
Not Used
Not Used
Not Used (= 0)
CONDitionEVENtENABle
b0
b1
b2
b3
b4
b5
b6
b7
b8
b9
b10
b11
b12
b13
b14
b15
:STAT:OPER:EVEN?
:STAT:OPER:NTR
:STAT:OPER:PTR
CONDitionEVENtENABle
b0
b1
b2
b3
b4
b5
b6
b7
b8
b9
b10
b11
b12
b13
b14
b15
QUESTIONABLE STATUS
b0
b1
b2
b3
b4
b5
b6
b7
b8
b9
b10
b11
b12
b13
b14
b15
OPERATIONAL STATUS
b0
b1
b2
b3
b4
b5
b6
b7
b8
b9
b10
b11
b12
b13
b14
b15
:STAT:QUES:ENAB?
NTRPTR
b0
b0
b1
b1
b2
b2
b3
b3
b4
b4
b5
b5
b6
b6
b7
b7
b8
b8
b9
b9
b10
b10
b11
b11
b12
b12
b13
b13
b14
b14
b15
b15
*CLS
:STAT:OPER:ENAB?
b0
b0
b1
b1
b2
b2
b3
b3
b4
b4
b5
b5
b6
b6
b7
b7
b8
b8
b9
b9
b10
b10
b11
b11
b12
b12
b13
b13
b14
b14
b15
b15
Error Queue
b0
b1
b2
b3
b4
b5
b6
&
&
b7
b8
b9
b10
b11
b12
b13
b14
b15
b0-b15
b0
b1
b2
b3
b4
b5
b6
b7
b8
b9
b10
b11
b12
b13
b14
b15
b0-b15
QUESTIONABLE
EVENT
Operation Complete (OP)
Not Used
Query Error
Device Dependent Error
Execution Error
Command Error
Not Used
Not Used
PROGRAMMING WITHSTATUS SYSTEM
SCPI COMMANDSPROGRAMMING
Enable Register
The enable register specifies the bits in the event
register that can produce a summary bit. The
682XXB/683XXB logically ANDs corresponding bits
in the event and enable registers, and ORs all the resulting bits to obtain a summary bit. Summary bits
are recorded in the Summary Status Byte. Enable
registers are read-write. Querying an enable register
does not affect it.
Status Group
Reporting
The command
Status Enable register and the Questionable Status
Enable register to all 0’s.
The state of certain 682XXB/683XXB hardware and
operational events and conditions can be determined
by programming th e st atu s sy st em. As s ho wn i n Fi gure 2-1, the three lower status groups provide status
information to the Summary Status Byte group. The
Summary Status Byte group is used to determine
the general nature of an event or condition and the
other status groups are used to determine the specific nature of the event or condition.
Programming commands for the status system, including examples of command usage,
can be found in Chapter 3.
The following paragraphs explain the information
that is provided by each status group.
:STATus:PRESet sets the Operational
NOTE
2-14682XXB/683XXB SCPI PM
Loading...
+ 186 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.