T ektronix products are covered by U.S. and foreign patents, issued and pending. Information in this publication supercedes
that in all previously published material. Specifications and price change privileges reserved.
T ektronix Japan, Ltd., 5–9–31 Kitashinagawa, Shinagawa–ku, Tokyo 141–0001 Japan
T ektronix, Inc., P.O. Box 500, Beaverton, OR 97077
TEKTRONIX and TEK are registered trademarks of T ektronix, Inc.
WARRANTY
T ektronix warrants that this product will be free from defects in materials and workmanship for a period of one (1) year
from the date of shipment. If any such product proves defective during this warranty period, T ektronix, at its option, either
will repair the defective product without charge for parts and labor, or will provide a replacement in exchange for the
defective product.
In order to obtain service under this warranty, Customer must notify Tektronix of the defect before the expiration of the
warranty period and make suitable arrangements for the performance of service. Customer shall be responsible for
packaging and shipping the defective product to the service center designated by T ektronix, with shipping charges prepaid.
T ektronix shall pay for the return of the product to Customer if the shipment is to a location within the country in which the
T ektronix service center is located. Customer shall be responsible for paying all shipping charges, duties, taxes, and any
other charges for products returned to any other locations.
This warranty shall not apply to any defect, failure or damage caused by improper use or improper or inadequate
maintenance and care. T ektronix shall not be obligated to furnish service under this warranty a) to repair damage resulting
from attempts by personnel other than T ektronix representatives to install, repair or service the product; b) to repair
damage resulting from improper use or connection to incompatible equipment; or c) to service a product that has been
modified or integrated with other products when the effect of such modification or integration increases the time or
difficulty of servicing the product.
THIS WARRANTY IS GIVEN BY TEKTRONIX WITH RESPECT TO THIS PRODUCT IN LIEU OF ANY
OTHER WARRANTIES, EXPRESSED OR IMPLIED. TEKTRONIX AND ITS VENDORS DISCLAIM ANY
IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
TEKTRONIX’ RESPONSIBILITY TO REPAIR OR REPLACE DEFECTIVE PRODUCTS IS THE SOLE AND
EXCLUSIVE REMEDY PROVIDED TO THE CUST OMER FOR BREACH OF THIS WARRANTY. TEKTRONIX
AND ITS VENDORS WILL NOT BE LIABLE FOR ANY INDIRECT , SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES IRRESPECTIVE OF WHETHER TEKTRONIX OR THE VENDOR HAS
ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.
Figure 4–1: Equipment needed to run the GPIB example programs4–1.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
ix
Table of Contents
x
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Preface
This is the programmer manual for the AWG400/500/600 Series Arbitrary
Waveform Generators. This manual provides information necessary for operating
the instrument over both the General Purpose Interface Bus (GPIB) and Ethernet
interfaces.
This manual provides the following information:
HThe Getting Started section describes how to connect and set up the
waveform generator for remote operation.
HThe Syntax and Commands section defines the command syntax and
processing conventions and describes each command in the waveform
generator command set.
HThe Status and Events section explains the status information and event
messages reported by the waveform generator.
HThe Programming Examples section describes how to use the Sample
Program floppy disk supplied with the waveform generator.
HThe Appendices section contains various tables of reference information.
Related Manuals
HThe Glossary and Index section contains a glossary of common terms and an
index to this manual.
Other documentation for the waveform generator includes:
HThe AWG410, 420 & AWG430 200MHz Arbitrary Waveform Generator User
Manual (Tektronix part number 070-A809-50) describes the operation of the
instrument.
HThe AWG510 & AWG520 Arbitrary Waveform Generator User Manual
(Tektronix part number 071-0099-50) describes the operation of the
instrument.
HThe AWG610 Arbitrary Waveform Generator User Manual (Tektronix part
number 071-0554-50) describes the operation of the instrument.
HThe AWG510 & AWG520 Arbitrary Waveform Generator Service Manual
(Tektronix part number 071-0101-50) provides information for maintaining
and servicing the waveform generator.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
xi
Preface
HThe AWG610 Arbitrary Waveform Generator Service Manual (Tektronix part
number 071-0556-50) provides information for maintaining and servicing
the waveform generator.
xii
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Getting Started
Getting Started
The AWG400/500/600 Series Arbitrary Waveform Generator has GPIB and
10Base–T/100Base–TX (AWG400 series only) Ethernet interface capability. You
can write computer programs that remotely set the front panel controls or that
transfer waveform data.
To help you get started with programming the waveform generator, this section
includes the following subsections:
HManual Overview – summarizes the type of programming information
contained in each major section in this manual.
HSetting Up Remote Communications Using GPIB – describes how to connect
the waveform generator to a controller through the GPIB interface, and how
to set the appropriate front panel controls.
HSetting Up Remote Communications Using Ethernet – describes how to
connect the waveform generator to a controller using the Ethernet interface
and how to set the appropriate front panel controls.
Manual Overview
Syntax and Commands
Command parts
FUNCtion:USER
Syntax diagram
FUNCtion
Header
Mnemonics
USER:
A summary of the information provided in each major section of this manual
follows:
The Command Syntax subsection, which begins on page 2–1, describes the
structure and content of the messages your program sends to the waveform
generator. You can use the Standard Commands for Programmable Instruments
(SCPI) and IEEE 488.2 Common Commands. Figure 1–1 is an example of the
syntax and command parts diagrams used in the Command Syntax subsection.
Comma
"FILE1","FLOPpy"
ArgumentsSpace
<space>
<file_name>
,
<msus>
Figure 1-1: Common message elements
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
1-1
Getting Started
The Command Syntax subsection also describes the result of each command, and
provides examples of how you might use it. The Command Groups subsection,
which begins on page 2–17, provides a command list by functional area. The
Command Descriptions subsection, which begins on page 2–31, arranges
commands alphabetically. Figure 1–2 illustrates the two kinds of command lists.
Commands Grouped in Functional AreasCommands Listed Alphabetically
TRIGg
and
AWGControl:RMODe
AWGControl:EVENt:LOGic[:IMMediate]
S
G
E
AWGControl:DOUTput[:STATe]
S
G
Syntax: . . .
Group: . . .
E
Examples: . . .
Figure 1-2: Functional groupings and alphabetical list of commands
Status and Events
Reporting
The program may request information from the waveform generator. The
waveform generator provides information in the form of status and error
messages. Figure 1–3 on page 1–3 illustrates the basic operation of this system.
The Status and Events Reporting subsection, which begins on page 3–1,
describes how to use the status reporting functions that conform to SCPI and
IEEE–488.2 in your programs.
1-2
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Your program requests
status and event reports.
Controller
Your program requests
status and event reports.
Controller
Getting Started
AWG sends status and event reports.
Waveform generator (rear panel)
GPIB cable
AWG sends status and event reports.
Waveform generator (rear panel)
Programming Examples
Transceiver cable
LAN (Ethernet) or Hub
Transceiver cable
Figure 1-3: Basic operation of status and events reporting
The Programming Examples section, which begins on page 4–1, provides some
sample waveform generator programs. A floppy disk (see Figure 1–4) is supplied
with this manual. The disk contains a Microsoft Visual C++ and Visual BASIC
source-code version of each program.
AWG Example
Programs
Figure 1-4: The floppy disk
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
1-3
Getting Started
Setting Up Remote Communications Using GPIB
For remote operations, the instrument must be connected to the controller.
The waveform generator has a 24-pin GPIB connector on its rear panel, as shown
in Figure 1–5. This connector has a D-type shell and conforms to IEEE
Std 488.1-1987.
Attach an IEEE Std 488.1-1987 GPIB cable (Tektronix Part Number
012-0991-xx) to the GPIB connector.
GPIB connector
Figure 1-5: GPIB connector location
1-4
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Stack GPIB connectors, if needed, as shown in Figure 1–6.
Getting Started
Figure 1-6: How to stack GPIB connectors
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
1-5
Getting Started
GPIB Requirements
Follow these rules when you use your waveform generator with a GPIB network:
HAssign a unique device address to each device on the bus. Two devices can
not share the same device address.
HDo not connect more than 15 devices to one bus.
HConnect one device for every 2 meters (6 feet) of cable used.
HDo not use more than 20 meters (65 feet) of cable to connect devices to a
bus.
HWhile using the network, turn on at least two-thirds of the devices on the
network.
HConnect the devices on the network in a star or linear configuration, as
shown in Figure 1–7. Do not use loop or parallel configurations.
GPIB Device
GPIB Device
GPIB Device
GPIB Device
GPIB Device
Setting the GPIB
Parameters
GPIB Device
GPIB Device
Figure 1-7: Typical GPIB network configurations
NOTE. Appendix C: Network Interface Specification provides more information
about the GPIB configuration of the waveform generator.
You must set the GPIB parameters of the waveform generator to match the
configuration of the bus. Follow the steps below to set up the waveform
generator for the GPIB interface.
1. Press the UTILITY button to display the Utility screen.
2. Press the Comm menu button at the bottom of the screen.
3. Move the cursor to the Remote Control field using the up/down (↑/↓) arrow
buttons, then select GPIB using the left/right (←/→) arrow buttons.
4. Move the cursor to the GPIB Configuration field using the up/down (↑/↓)
arrow buttons, then select Talk/Listen using either the general purpose knob
or the left/right (←/→) arrow buttons. See Figure 1–8 on page 1–7.
1-6
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Getting Started
5. Move the cursor to the GPIB Address field using the down (↓) arrow
button. Set the address using either the general purpose knob or the keypad.
Figure 1-8: Selecting the GPIB configuration and address
The waveform generator is set up for bidirectional communication with your
controller. Do the following to isolate the waveform generator from the bus:
Select Off Bus in the GPIB Configuration field.
This selection disables all communication with the controller.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
1-7
Getting Started
Setting Up Remote Communications Using Ethernet
NOTE. For remote operations, the instrument must be connected to the controller.
The waveform generator has an Ethernet (10Base–T/100Base–Tx) port on the
rear panel (100Base–Tx is AWG400 series only) as shown in Figures 1–9 and
1–10.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Getting Started
Setting the Network
Parameters
You must set the network parameters of the waveform generator to match the
configuration of the network. After you have set these parameters, you can
control the waveform generator through the Ethernet interface.
1. Press the UTILITY button to display the Utility screen.
2. Press the Comm menu button at the bottom of the screen.
3. Move the cursor to the Remote Control field using the up/down (↑/↓) arrowbuttons, then select Network using the left/right (←/→) arrow buttons.
4. Move the cursor to the Network IP Address field using the up/down (↑/↓)
arrow buttons, then set the address using the keypad. See Figure 1–11 on
page 1–9.
5. If necessary, use the Subnet Mask field to set the address.
6. If necessary, use the Destination Network and Gateway Address fields to
set the destination network and the address.
You need to set the gateway address when the remote computers are
connecting to another network that is connected to the network via gateway.
You can set up to three gateways.
Setting the FTP server to Enabled for access to the hard disk system of the
instrument from a remote computer.
If you are not familiar with the network setup, consult with your network
administrator.
Network
parameters
Figure 1-11: Setting the Network parameters
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
1-9
Getting Started
Testing the Network
Connection
After completing the connection and settings, verify that the waveform generator
can recognize the network and the remote computers, or if the network can
recognize the waveform generator . Following these steps to use the ping
command to verify that the instrument can communicate with the network:
1. Press the UTILITY button to display the Utility screen.
2. Press the Network or Comm bottom menu button.
3. Press the Execute Ping side button to display a dialog box.
4. Enter the IP address of the remote computer in the dialog box, and then push
the OK side button.
The ping command sends a packet to the remote computer specified by the
IP address. When the computer receives the packet, it sends the packet back
to the sender (waveform generator).
When the waveform generator can communicate with the remote computer
through the network the message in Figure 1–12 displays. If communication
failed, the message box displays an error message such as ”no response
from...”.
5. Repeat steps 2 and 3 to verify the connection for other remote computers on
the network.
AWG400 series AWG500/600 series
Figure 1-12: Message box to indicate the establishment of communication
1-10
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Syntax and Commands
Command Syntax
This section contains general information about command structure and syntax
usage. You should familiarize yourself with this material before using the
waveform generator command descriptions.
This manual describes commands and queries using Backus-Naur Form (BNF)
notation. Table 2–1 defines standard BNF symbols.
Table 2-1: BNF symbols and meanings
SymbolMeaning
<ą>Defined element
::=Is defined as
|Exclusive OR
{ą}Group; one element is required
[]Optional; can be omitted
...Previous element(s) may be repeated
()Comment
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-1
Command Syntax
SCPI Commands and Queries
The waveform generator uses a command language based on the SCPI standard.
The SCPI (Standard Commands for Programmable Instruments) standard was
created by a consortium to provide guidelines for remote programming of
instruments. These guidelines provide a consistent programming environment for
instrument control and data transfer. This environment uses defined programming messages, instrument responses and data formats that operate across all
SCPI instruments, regardless of manufacturer.
The SCPI language is based on a hierarchical or tree structure that represents a
subsystem (see Figure 2–1). The top level of the tree is the root node; it is
followed by one or more lower-level nodes.
TRIGger
SEQuence
POLarity
SOURceLEVel
Root node
LowerĆlevel
nodes
Figure 2-1: Example of SCPI subsystem hierarchy tree
You can create commands and queries from these subsystem hierarchy trees.
Commands specify actions for the instrument to perform. Queries return
measurement data and information about parameter settings.
2-2
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Syntax
Creating Commands
Creating Queries
Query Responses
SCPI commands are created by stringing together the nodes of a subsystem
hierarchy and separating each node by a colon.
In Figure 2–1 on page 2–2, TRIGger is the root node and SEQuence, LEVel,POLarity, and SOURce are lower-level nodes. To create an SCPI command, start
with the root node TRIGger and move down the tree structure adding nodes until
you reach the end of a branch. Most commands and some queries have parameters; you must include a value for these parameters. The command descriptions,
which begin on page 2–31, list the valid values for all parameters.
For example, TRIGger:SEQuence:SOURce EXTernal is a valid SCPI command
created from the hierarchy tree in Figure 2–1 on page 2–2.
To create a query, start at the root node of a tree structure, move down to the end
of a branch, and add a question mark. TRIGger:SEQuence:SOURce? is an
example of a valid SCPI query using the hierarchy tree in Figure 2–1 on page
2–2.
The query causes the waveform generator to return information about its status
or settings. When a query is sent to the waveform generator, only the values are
returned. When the returned value is a mnemonic, it is noted in abbreviated
format, as shown in Table 2–2.
Table 2-2: Query response examples
QueryResponse
SOURce:VOLTage:AMPLitude?1.000
AWGControl:RMODe?CONT
A few queries also initiate an operation action before returning information. For
example, the *CAL? query runs a calibration.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-3
Command Syntax
Parameter Types
Parameters are indicated by angle brackets, such as <file_name>. There are
several different types of parameters, as listed in Table 2–3. The parameter type
is listed after the parameter. Some parameter types are defined specifically for
the AWG400/500/600 series command set and some are defined by SCPI.
Table 2-3: Parameter types used in syntax descriptions
Parameter TypeDescriptionExample
arbitrary blockA block of data bytes#512234xxxxx...
where 5 indicates that the following
5 digits (12234) specify the length of
the data in bytes;
xxxxx... indicates the data
NR3 numericFloating point numbers3.1415E-9, -16.1E5
NRf numericFlexible decimal number that may
be type NR1, NR2, or NR3
stringAlphanumeric characters (must be
within quotation marks)
See NR1, NR2, NR3 examples in
this table
Testing 1, 2, 3"
2-4
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Syntax
Special Characters
Abbreviating Commands,
Queries, and Parameters
The Line Feed (LF) character or the New Line (NL) character (ASCII 10), and
all characters in the range of ASCII 127-255 are defined as special characters.
These characters are used in arbitrary block arguments only; using these
characters in other parts of any command yields unpredictable results.
You can abbreviate most SCPI commands, queries, and parameters to an
accepted short form. This manual shows these commands as a combination of
upper and lower case letters. The upper case letters indicate the accepted short
form of a command, as shown in Figure 2–2. The accepted short form and the
long form are equivalent and request the same action of the instrument.
Long form of a
command
Accepted short form
of a command
ce1:FREQuency 100
SOUR
Minimum information needed
for accepted short form
SOUR1:FREQ 100
Figure 2-2: Example of abbreviating a command
NOTE. The numeric suffix of a command or query may be included in either the
long form or short form; the AWG400/500/600 series will default to “1” if no
suffix is used.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-5
Command Syntax
Chaining Commands and
Queries
You can chain several commands or queries together into a single message. To
create a chained message, first create a command or query, then add a semicolon
(;), and finally add more commands or queries and semicolons until you are
done. If the command following a semicolon is a root node, precede it with a
colon (:). Figure 2–3 illustrates a chained message consisting of several
commands and queries. The chained message should end in a command or query,
not a semicolon. Responses to any queries in your message are separated by
semicolons.
Response from first queryResponse from second query
First query
100;1.2
Figure 2-3: Example of chaining commands and queries
If a command or query has the same root and lower-level nodes as the previous
command or query, you can omit these nodes. In Figure 2–4, the second
command has the same root node (SEQuence) as the first command, so these
nodes can be omitted.
Figure 2-4: Example of omitting root and lowerĆlevel nodes in a chained message
2-6
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Syntax
Unit and SI Prefix
If the decimal numeric argument refers to voltage, frequency, impedance, or
time, you can express it using SI units instead of using the scaled explicit point
input value format <NR3>. (SI units are units that conform to the System
International d’Unites standard.) For example, you can use the input format
200 mV or 1.0 MHz instead of 200.0E–3 or 1.0E+6, respectively, to specify
voltage or frequency.
You can omit the unit, but you must include the SI unit prefix. You can use either
upper or lowercase units.
V or v for voltage
Hz, HZ, or hz for frequency
ohm, OHM, or Ohm for impedance
s or S for time
dbm, DBM, or Dbm for power ratio (AWG400/500 series only)
In the case of angle, you can use RADian and DEGree. The default unit is
RADian.
The SI prefixes, which must be included, are shown below. Note that either
lower or upper case prefixes can be used.
SI prefix *p/Pn/Nu/Um/Mk/Km/Mg/G
Corresponding power10
*Note that the prefix m/M indicates 10-3when the decimal numeric argument denotes
voltage or time, but indicates 106when it denotes frequency.
*Note that the prefix u/U is used instead of "m".
-12
10
-9
10
-6
10
-3
10
3
10
6
10
Use mV for V, and MHz for Hz.
9
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-7
Command Syntax
General Rules
Here are three general rules for using SCPI commands, queries, and parameters:
HYou can use single (‘ ’) or double (“ ”) quotation marks for quoted strings,
but you cannot use both types of quotation marks for the same string.
correct:“This string uses quotation marks correctly.”
correct:‘This string also uses quotation marks correctly.’
incorrect:“This string does not use quotation marks correctly.’
HYou can use upper case, lower case, or a mixture of both cases for all
commands, queries, and parameters.
:OUTPUT:FILTER:LPASS:FREQUENCYĂ200MHZ
is the same as
output:filter:lpass:frequencyĂ200MHz
and
OUTPUT:filter:LPASS:frequencyĂ200MHz
NOTE. Literal strings (quoted) are case sensitive. For example: file names.
HNo embedded spaces are allowed between or within nodes.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
IEEE 488.2 Common Commands
ANSI/IEEE Standard 488.2 defines the codes, formats, protocols, and usage of
common commands and queries used on the interface between the controller and
the instruments. The waveform generator complies with this standard.
The syntax for an IEEE 488.2 common command is an asterisk (*) followed by a
command and, optionally, a space and parameter value. The syntax for an
IEEE 488.2 common query is an asterisk (*) followed by a query and a question
mark. All of the common commands and queries are included in the Syntax andCommands section of this manual. The following are examples of common
commands:
H*ESE 16
H*CLS
The following are examples of common queries:
H*ESR?
Command Syntax
H*IDN?
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-9
Command Syntax
Constructed Mnemonics
Some command headers list a range of mnemonics. When constructing the
command, you select one mnemonic from the list. You then use the mnemonic in
the command just as you do any other mnemonic. Mnemonic ranges can be
presented in any of the following formats:
MNEMonic[a|b|c]. The values a, b, and c represent the actual list of valid
selections. You cannot list more than one value.
For example, for the command SYSTem:COMMunicate:LAN:GATeĆway[1|2|3]:ADDRess, the gateway mnemonic could be any of the following:GATeway1, GATeway2, or GATeway3. Therefore, a valid usage of this
command would be: SYSTem:COMMunicate:LAN:GATeway1:ADDRess.
MNEMonic<n>. The value of <n> is the upper range of valid suffixes. If the
numeric suffix is omitted, the waveform generator uses the default value of
“1”.
Source Channel
Mnemonics
These commands specify the source channel to use as a mnemonic in the header.
These commands specify the gateway to use as a mnemonic in the header.
SymbolMeaning
GATeway1Gateway 1
GATeway2Gateway 2
GATeway3Gateway 3
These commands specify the marker to use as a mnemonic in the header.
SymbolMeaning
MARKer1The signal for the marker 1 (AWG500/600 series only)
MARKer2The signal for the marker 2 (AWG500/600 series only)
These commands specify the remote device to use as a mnemonic in the header.
SymbolMeaning
RDEVice1Network drive 1
2-12
RDEVice2Network drive 2
RDEVice3Network drive 3
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Syntax
Source to Output
Connections
AWG400 Series
CH1
(Analog Data) SOURce1
(Digital Data) (SOURce4)
(Ext add in) SOURce8
CH2
(Analog Data) SOURce2
(Digital Data) (SOURce5)
(Noise) SOURce9
The following illustrations shows the source to output connections for the
AWG400 series, AWG510, AWG520, and AWG610 instruments.
OUTPut1 (Analog Output)
DOUTput1 (Analog Output)
OUTPut4 (Digital Output)
(Noise) SOURce7
OUTPut2 (Analog Output)
DOUTput2 (Analog Output)
OUTPut5 (Digital Output)
(Ext add in) SOURce10
CH3
(Analog Data) SOURce3
(Digital Data) (SOURce6)
(Noise) SOURce11
(Ext add in) SOURce12
AWG510
Channel1 SOURce1
Waveform
External SOURce8
Noise SOURce7OUTPut7
Pattern SOURce5
(W/Option03)
OUTPut3 (Analog Output)
DOUTput3 (Analog Output)
OUTPut6 (Digital Output)
OUTPut1
DOUTput1
OUTPut5
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-13
Command Syntax
AWG520
Channel1 SOURce1
Waveform
External SOURce8
OUTPut1
DOUTput1
AWG610
Noise SOURce7
Channel2 SOURce2
Waveform
Pattern SOURce5
(W/Option03)
Channel1 SOURce1
Waveform
OUTPut7
OUTPut2
DOUTput2
OUTPut5
OUTPut1
Doubt1
2-14
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Syntax Diagrams
Command Syntax
The syntax of each command and query is explained by both syntax diagrams
and BNF notation. Figure 2–5 shows some typical syntax diagram structures.
The syntax diagrams are described by the following symbols and notation:
HOval symbols contain literal elements, such as a command or query header
and a nonquoted string argument.
HCircle symbols contain separators or special symbols, such as (:), (,), and (?).
HBox symbols contain the defined element, such as <NR1>.
HArrow symbols connect elements to show the paths that can be taken through
the diagram and, thereby, the order in which the elements can be sent in a
command structure.
HParallel paths show that only one of the paths can be taken in the command.
See diagram 1 in Figure 2–5.
HA loop around an element(s) shows the element can be repeated. See
diagram 2 in Figure 2–5.
HA path around a group of elements shows that those elements are optional.
See diagram 3 in Figure 2–5.
NOTE. The unit and SI prefix that can be added to decimal numeric arguments
are not described in the syntax diagram. See Unit and SI Prefix on page 2–7.
Diagram 1
Diagram 2
Diagram 3
Figure 2-5: Typical syntax diagrams
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-15
Command Syntax
2-16
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Groups
This section lists commands in two ways, by functional groups and alphabetically. The functional group list starts below. The alphabetical list provides more
detail on each command and starts on page 2–31.
The GPIB interface of AWG400 Series conforms to SCPI (Standard Commands
for Programmable Instruments) 1999.0 and IEEE Std 488.2–1987, except where
noted.
The GPIB interface of AWG500/600 Series conforms to SCPI (Standard
Commands for Programmable Instruments) 1995.0 and IEEE Std 488.2–1987,
except where noted.
Functional Groups
Table 2–4 lists the functional groups into which the AWG400/500/600 Series
Arbitrary Waveform Generator (AWG) commands are classified.
Table 2-4: Functional groups in the AWG command set
GroupFunction
AWG ControlControl operating mode
CalibrationPerform calibration
DiagnosticControl selfĆtest routines
DisplayControl the presentation of information on the front panel display
HardcopyDump the whole display into the file on the mass storage
Mass MemoryControl file operations on the mass storage
OutputControl the characteristics of the waveform output port
SourceSet waveform and marker output parameters, such as frequency and level
StatusSet and query the registers and queues of the reporting system
SynchronizationControl operation complete and pending command execution
SystemControl miscellaneous instrument functions such as LAN, security, and time
TriggerSynchronize the waveform generator actions with events
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-17
Command Groups
Command Quick Reference
The next page lists all the commands in each functional group and can be copied
for use as a quick reference. The minimum accepted character string for each
command is shown in uppercase characters.
AWGControl:RMODe (?)Select the run mode, such as triggered or gated
AWGControl:RSTate?Query the current running status
AWGControl:RUN[:IMMediate]Enable the output
AWGControl:SREStoreRestore the settings from the specified file
Set the phase of the function waveform (AWG420,
AWG430 and AWG520 only)
Set the duty cycle of the pulse waveform
Set the peak-to-peak voltage of the function
waveform
Set the offset voltage of the function waveform
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Groups
Table 2-5: AWG Control commands (Cont.)
HeaderDescription
AWGControl:SSAVeStore the settings to the specified file
AWGControl:STOP[:IMMediate]Stop the output
Calibration Commands
Diagnostic Commands
The Calibration commands calibrate the waveform generator.
Table 2-6: Calibration commands
HeaderDescription
*CAL?Perform calibration
CALibration[:ALL] (?)Perform calibration
The Diagnostic commands control self-test diagnostic routines.
Table 2-7: Diagnostic commands
HeaderDescription
DIAGnostic:DATA?Query results of selfĆtest
DIAGnostic[:IMMediate] (?)Start the selfĆtest
DIAGnostic:SELect (?)Select the selfĆtest routine
*TST?Perform selfĆtest
Display Commands
The Display commands mimic manipulation of front-panel controls and set the
presentation of textual information on the front panel display.
Table 2-8: Display commands
HeaderDescription
ABSTouchPerform the function corresponding to the
frontĆpanel control selected
DISPlay:BRIGhtness (?)Control brightness of the display (AWG500/600
series only)
DISPlay:ENABle (?)Control ON/OFF of the display (AWG400 series
only)
DISPlay:HILight:COLor (?)Control hilight of the display (AWG400 series only)
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-21
Command Groups
Hardcopy Commands
The Hardcopy commands are used to print the entire display to a specified file
rather than printing to an external device.
The hardcopy commands used in this application do not conform to the 1999 and
1995 SCPI hardcopy standard. (The SCPI standards state that the MMEMory:OPEN
and MMEMory:CLOSe commands are used to open and close the file specified by
MMEMory:NAME, to accommodate feeding data from the HCOPy subsystem. This
state-dependent style of feeding data is not used in the waveform generator.)
Instead, the hardcopy commands are implemented in a way that more closely
resembles previous waveform generator usage. The waveform generator
implements the hardcopy commands as illustrated in the following example:
The above command sequence can be written as follows for the waveform
generator:
MMEMory:NAME "SAMPLE1.BMP"
HCOPy
In this case, the entire display will be written to the SAMPLE1.BMP file.
Table 2-9: Hardcopy commands
HeaderDescription
HCOPy:DESTinationSet the destination
HCOPy:DEVice:COLor (?)Select the color, or monochrome (AWG400 series
only)
HCOPy:DEVice:LANGuage (?)Select the data format
HCOPy[:IMMediate]Initiate the plot, or print immediately
HCOPy:SDUMp[:IMMediate]Plot or print the whole display
2-22
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Groups
Mass Memory Commands
The Mass Memory commands provide mass storage capabilities.
Selecting Mass Memory Devices. The waveform generator supports the devices
listed below. The network drives can be specified with the SYSTem command
group.
Table 2-10: Mass storage in AWG400/500/600
series
String argumentDescription
MAINInternal hard disk drive
FLOP or FLOPPYInternal floppy disk drive
NET1Network drive 1
NET2Network drive 2
NET3Network drive 3
File Names. The <file_name> parameter is described in some Mass Memory
commands with a string. The content of the string depends on the format needs
of the mass storage media. In particular, the file name may contain characters for
specifying subdirectories (e.g. “/”) and the period separator (“.”). The instrument
checks the file format when reading, and processes the file based on its content,
regardless of the file extention.
Table 2-11: Mass Memory commands
HeaderDescription
MMEMory:CATalog?Query information on the mass storage media
MMEMory:CDIRectory (?)Change the default directory for a file system
MMEMory:CLOSeClose the file specified in NAME
MMEMory:COPYCopy an existing file to a new file
MMEMory:DATA (?)Load data into the file
MMEMory:DELeteRemove a file
MMEMory:FEED (?)Feed data into the file specified in NAME
MMEMory:INITializeInitialize the specified mass storage
MMEMory:MDIRectoryMake a directory
MMEMory:MOVEMove an existing file to another file
MMEMory:MSIS (?)Select the current mass storage
MMEMory:NAME (?)Set the file name to be opened or closed
MMEMory:OPENOpen the file specified in NAME
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-23
Command Groups
Output Commands
The Output commands control the characteristics of the waveform output port. In
Table 2–13, OUTPut<x> refers to the waveform output channel, where <x>
represents a related channel number shown in Table 2–12.
Table 2-12: Output channel
SymbolMeaningAWG410AWG420AWG430AWG510AWG520AWG610
OUTPut1 CH1 analog
signal output
OUTPut2 CH2 analog
signal output
OUTPut3 CH3 analog
signal output
OUTPut4 CH1digital
data output
OUTPut5 CH2digital
data output
digitaldata
output
OUTPut6 CH3digital
data output
OUTPut7 NoiseADD
signal
O O O O O O
X O O X O X
X X O X X X
Op03
only
X
Op03
only
Op03
only
X X
Op03
only
Op03
only
Op03
X X X
Op03
only
X X X
Op03
only
X
only
X X X O O X
O:usable
X:not used
OpXX:usable OptXX only
Table 2-13: Output commands
HeaderDescription
OUTPut<x>:FILTer[:LPASs]
:FREQuency (?)
OUTPut<x>[:STATe] (?)Control whether the output terminal is open or
OUTPut<x>:ISTate (?)Set the inverted output on or off
Determine the cutoff frequency of the low pass filter
closed
2-24
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Groups
Source Commands
The Source commands set waveform and marker output parameters, such as
frequency and level. SOURce<x> and MARKer<y> in these commands have the
meanings shown in Table 2–14.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Groups
Status Commands
The external controller uses the Status commands to coordinate operation
between the waveform generator and other devices on the bus. The Status
commands set and query the registers/queues of the waveform generator
event/status reporting system. For more information about the registers and
queues described in Table 2–16, refer to the Status and Event Reporting section
on page 3–1.
Table 2-16: Status commands
HeaderDescription
*CLSClear all the event registers and queues
*ESE (?)Set and query ESER
*ESR?Query SESR
*PSC (?)Set powerĆon status clear flag
*SRE (?)Set and query SRER
STATus:OPERation:CONDition?Query the contents of OCR
STATus:OPERation:ENABle (?)Set the enable mask of OENR
STATus:OPERation[:EVENt]?Query the contents of OEVR
STATus:PRESetPreset OENR and QENR
Synchronization
Commands
STATus:QUEStionable:CONDition?Query the contents of QCR
STATus:QUEStionable:ENABle (?)Set the enable mask of QENR
STATus:QUEStionable[:EVENt]?Query the contents of QEVR
*STB?Query SBR
The external controller uses the Synchronization commands to prevent external
communications from interfering with waveform generator operation.
Table 2-17: Synchronization commands
HeaderDescription
*OPC (?)Generate or return the operation complete message
*WAIHold off all commands until all pending operations
complete
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-27
Command Groups
System Commands
The System commands control miscellaneous instrument functions, such as LAN
communication, security, and time.
Table 2-18: System commands
HeaderDescription
*IDN?Query ID information about the waveform generator
Set the protocol of the communication between the
waveform generator and the remote host
Control whether the communication with the
specified remote host is enabled
Set IP address of the waveform generator
Query the MAC address of the waveform generator
(AWG400 series only)
Set the subnet mask of the waveform generator
2-28
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Groups
Table 2-18: System commands (Cont.)
HeaderDescription
SYSTem:ERRor[:NEXT]?Query the next entry from the waveform generator's
error/event queue
SYSTem:KDIRection (?)Set the direction of cursor movement controlled by
the general purpose knob
SYSTem:KEYBoard[:TYPE] (?)Select the keyboard type
SYSTem:KLOCk (?)Lock the front panel and keyboard
SYSTem:SECurity:IMMediateDestroy all data and settings for security
SYSTem:TIME (?)Set the internal clock
SYSTem:UPTime?Query elapsed time from the powerĆon
SYSTem:VERSion?Query the SCPI version number
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-29
Command Groups
Trigger Commands
The Trigger commands
synchronize the waveform generator actions with events.
Table 2-19: Trigger commands
HeaderDescription
ABORtReset the trigger system
*TRGGenerate the trigger event
TRIGger[:SEQuence][:IMMediate]Immediately trigger the sequence operation
TRIGger[:SEQuence]:IMPedance
(?)
TRIGger[:SEQuence]:LEVel (?)Set the trigger level
TRIGger[:SEQuence]:POLarity
(?)
TRIGger[:SEQuence]:SLOPe (?)Select the slope of the trigger signal
TRIGger[:SEQuence]:SOURce (?)Select the source for the event detector
TRIGger[:SEQuence]:TIMer (?)Set the period of the internal clock
Select the input impedance of the external trigger
Select the polarity of the trigger signal
2-30
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Descriptions
This subsection lists each command and query in the waveform generator
command set in alphabetical order. Each command entry includes a command
description and command group, related commands (if any), syntax, and
arguments. Each entry also includes one or more usage examples.
This subsection fully spells out headers, mnemonics, and arguments with the
minimal spelling shown in upper case. For example, to use the abbreviated
version of the SOURce:FREQuency command, just type SOUR:FREQ.
The symbol “(?)” follows the command header of commands that can be used as
either a command or a query; the symbol “?” follows commands that can only be
used as a query. Commands that are command-only or query-only are noted as
such.
ABORt (No Query Form)
This command resets the trigger system and places all trigger sequences in the
idle state. This command is equivalent to depressing the FORCE TRIGGER
button on the front panel in the gated mode.
Group
Related Commands
Syntax
Arguments
Examples
Trigger
TRIGger[:SEQuence][:IMMediate], *TRG
ABORt
ABORt
None
ABORt
resets the trigger system.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-31
Command Descriptions
ABSTouch (No Query Form)
This command performs the functions that are manually set by pressing the
corresponding front-panel key and button, or by rotating the corresponding knob.
This command works even when the instrument is in the keylock or local
lockout states.
BOTTom[1] O O O O O O
BOTTom2 O O O O O O
BOTTom3 O O O O O O
BOTTom4 O O O O O O
BOTTom5 O O O O O O
BOTTom6 O O O O O O
BOTTom7 O O O O O O
SIDe[1] O O O O O O
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Descriptions
Table 2-20: Argument and available AWG (Cont.)
ArgumentAWG610AWG520AWG510AWG430AWG420AWG410
SIDe2 O O O O O O
SIDe3 O O O O O O
SIDe4 O O O O O O
SIDe5 O O O O O O
CMENu O O O O O O
RUN O O O O O O
CH1 O O O O O X
CH2 X O O X O X
CH3 X X O X X X
DIGitalOp03Op03Op03Op03Op03 X
DARRow O O O O O O
UARRow O O O O O O
LARRow O O O O O O
RARRow O O O O O O
SETup O O O O O O
APPL O O O O O O
EDIT O O O O O O
UTILity O O O O O O
HARDcopy O O O O O O
TOGGle O O O O O O
SHIFt O O O O O O
ENTer O O O O O O
VMENu O O O O O O
QKEDit O O O O O O
HMENu O O O O O O
TMENu O O O O O O
FTRigger O O O O O O
FEVent O O O O O O
SEVen O O O O O O
MEGa O O O O O O
EIGHt O O O O O O
KILo O O O O O O
NINe O O O O O O
MILLi O O O O O O
FOUR O O O O O O
MICRo O O O O O O
FIVe O O O O O O
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-33
Command Descriptions
Table 2-20: Argument and available AWG (Cont.)
ArgumentAWG610AWG520AWG510AWG430AWG420AWG410
NANo O O O O O O
SIX O O O O O O
PICo O O O O O O
ONE O O O O O O
D O O O O O O
TWO O O O O O O
E O O O O O O
THRee O O O O O O
F O O O O O O
ZERo O O O O O O
A O O O O O O
POINt O O O O O O
B O O O O O O
SIGN O O O O O O
C O O O O O O
CLR O O O O O O
G O O O O O O
DELete O O O O O O
INF O O O O O O
RETurn O O O O O O
OUTPut[1] O O O O O O
IOUTput[1]
OUTPut2 X O O X O X
IOUTput2 X
OUTPut3 X X O X X X
IOUTput3 X X
This argument sets the press and release of the specified front panel key. If you
specify ON or nonzero value in this argument, the front panel key is set to press.
If you specify OFF or zero value in this argument, the front panel key is set to
release. When the argument is not specified, 1 is set.
<value>::= <NR1>
This argument sets the rotating direction and quantities of the specified front
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Descriptions
panel knob. If you specify a positive value in this argument, the knob rotates
clockwise. If you specify a negative value in this argument, the knob rotates
counterclockwise. When the argument is not specified, 1 is set.
Figure 2–6 shows ABSTouch arguments corresponding to the associated
controls.
BOTTom1 – BOTTom7
1
AWG400 Series only
2
AWG400 Series, AWG520 only
SIDe 1
SIDe 2
SIDe 3
SIDe 4
SIDe 5
CMENu
LARRow
DARRow
OUTPut[1]
UARRow
RARRow
See Figure 2-8
IOUTPut[1]
SETup
OUTPut2
2
EDIT
1
IOUTPut2
APPL
UTILity
See Figure 2-7
OUTPut3
1
HARDcopy
1
IOUTPut3
1
Figure 2-6: ABSTouch arguments and associated controls
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-35
Command Descriptions
TOGGle
ENTer
GPKNob
EIGHt
KILo
FIVe
SHIFt
SEVen
MEGa
FOUR
MICRo
NANo
NINe
MILLi
SIX
PICo
SIGN
THRee
F
C
ONE
D
ZERo
A
CLR
G
DELete
INF
RETurn
TWO
E
POINt
B
Figure 2-7: ABSTouch arguments and Front panel key area
VMENu
QKEDit
OFFSet
HMENu
HSHift
RUN
1
CH1
1
CH2
2
CH3
1
DIGital
1
AWG400/500 series only
2
AWG400 series only
LSCale
SSCale
Figure 2-8: ABSTouch arguments and Trigger, Output controls
LEVel
TMENu
FTRigger
FEVent
2-36
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Descriptions
Examples
ABSTOUCH SETUP
displays the setup menu that is displayed by pressing the SETUP button on the
front panel.
AWGControl:CLOCk:SOURce (?)
AWG400/500 series Only
This command selects the clock source as either Internal or External.
Group
Related Commands
Syntax
AWGControl
AWG Control
SOURce:ROSCillator:SOURce
AWGControl:CLOCk:SOURce { INTernal | EXTernal }
AWGControl:CLOCk:SOURce?
:CLOCk
<space>
INTernal
EXTernal
SOURce:
?
Arguments
INTernal select the internal clock derived from the reference clock as the clock
source.
EXTernal select the external clock signal connected to the EXT CLOCK IN on
the rear panel.
At *RST, this parameter is set to INTernal.
Examples
AWGControl:CLOCk:SOURce EXTernal
selects the external clock as the clock source.
AWGControl:DOUTput<x>[:STATe] (?)
This command supplies raw output of the waveform generator D/A converter for
the specified channel. In AWG500 series the settings of SOURce:VOLTage and
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-37
Command Descriptions
OUTPut:FILTer commands are ignored. In the AWG600 series, the setting
OUTPut:FILTer command is ignored.
Group
Related Commands
Syntax
AWGControl
Arguments
AWG Control
SOURce:VOLTage command group, OUTPut:FILTer command group
AWGControl:DOUTput<x>[:STATe] { OFF | ON | <NR1> }
AWGControl:DOUTput<x>[:STATe]?
AWG410AWG420AWG430AWG510AWG520AWG610
11, 21, 2, 311, 21
<space>
DOUTput
:
<x>
OFF or <NR1>+0 provides the D/A converter output normally.
ON or <NR1>00 provides raw output of the D/A converter.
OFF
ON
<NR1>
?
Examples
At *RST, this value is set to 0.
AWGControl:DOUTput1:STATe ON
supplies the D/A converter output directly to CH 1.
2-38
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
AWGControl:ENHanced:SEQuence[:JMODe] (?)
This command selects the jump mode in the sequence of the enhanced mode.
LOGic The jump mode is ”logic”.
TABLeThe jump mode is ”table”.
SOFTwareThe jump mode is ”software”.At *RST, this value is set to TABLe.
Examples
AWGControl:ENHanced:SEQuence SOFTware
sets the jump mode to software.
AWGControl:EVENt[:LOGic][:IMMediate] (No Query Form)
This command generates a trigger event for the “logic jump” specified in the
sequence file. This has the same effect as pressing the FORCE EVENT button
on the front panel.
Group
Related Commands
Syntax
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
AWG Control
AWGControl:RUN[:IMMediate], *TRG
AWGControl:EVENt[:LOGic][:IMMediate]
2-39
Command Descriptions
:
AWGControl
Arguments
Examples
:
:
EVENt
LOGic
None
AWGControl:EVENt:LOGic:IMMediate
generates a trigger event for the “logic jump”.
AWGControl:EVENt:SOFTware[:IMMediate] (No Query Form)
This command jumps to a specified line in a sequence file. To enable this
command, a sequence file must be loaded and software jump mode must be set
in the sequence file.
This command will return a “Settings conflict” error (code:–221) when any of
these conditions are present:
1) The waveform generator is not in Enhanced mode.
2) No sequence file is loaded.
3) The Jump Mode setting of the sequence file is not Software.
IMMediate
Group
Related Commands
Syntax
Arguments
It also will return a “Data out of range” error (code:–222) if the <line> argument
is less than or equal to zero, or greater than the number of steps of the loaded
sequence file.
AWG Control
None
AWGControl:EVENt:SOFTware[:IMMediate]Ă<line>
:
EVENtAWGControl
:
SOFTware
:
<space>
IMMediate
<line>
<line>::=<NR1> is the line number to be jumped to in the sequence file.
2-40
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Descriptions
Examples
AWGControl:EVENt:SOFTware:IMMediate 10
jumps to line 10 in the sequence file.
AWGControl:EVENt:TABLe[:IMMediate] (No Query Form)
This command generates a trigger event for the “table jump” specified in the
sequence file when a jump mode of sequence (ENHanced mode) is a Table.
Group
Related Commands
Syntax
Arguments
AWG Control
None
AWGControl:EVENt:TABLe[:IMMediate]
:
TABLe
None
:
EVENtAWGControl
:
IMMediate
Examples
AWGControl:EVENt:TABLe:IMMediate
generates a trigger event for the “table jump”.
AWGControl:FG:FREQuency[:CW|:FIXed] (?)
This command adjusts the frequency of the function waveform on all channels.
This query returns the frequency currently set.
CW (Continuous Wave) and FIXed are aliases, and have the same effect.
Group
Syntax
AWG Control
AWGControl:FG:FREQuency[:CW|:FIXed] <NRf>
AWGControl:FG:FREQuency[:CW|:FIXed]?
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-41
Command Descriptions
AWGControl
:
:
Arguments
Examples
FG
:
FREQuency
CW
FIXed
<space>
<NRf> is the output waveform frequency. The range is as follows.
AWG400 series : 1Hz to 10 MHz.
AWG500 series : 1Hz to 100 MHz.
AWG600 series : 1Hz to 260 MHz.
At *RST, this value is set as follows.
AWG400 series : 1 MHz.
AWG500 series : 5 MHz.
AWG600 series : 13 MHz.
AWGControl:FG:FREQuency 10MHz
sets the frequency to 10 MHz.
<NRf>
?
AWGControl:FG<n>:FUNCtion[:SHAPe] (?)
This command selects a standard function waveform (as opposed to a waveform
file) in the specified channel.
This query returns the currently selected standard function waveform.
Group
Syntax
AWG Control
AWGControl:FG<n>:FUNCtion[:SHAPe] <shape>
AWGControl:FG<n>:FUNCtion[:SHAPe] ?
<n>::= channel
2-42
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
AWGControl
Command Descriptions
SINusoid
:
:
FUNCtion
FG
<n>
:
SHAPe
<space>
TRIangle
SQUare
RAMP
PULSe
DC
?
Arguments
Examples
SINusoid selects a sine wave function waveform.
TRIangle selects a triangle function waveform.
SQUare selects a square wave function waveform.
RAMP selects a ramp function waveform.
PULSe selects a pulse function waveform.
DC selects a DC function waveform.
At *RST, this value is set to SINusoid
AWGControl:FG1:FUNCtion RAMP
sets the CH1 standard function waveform to RAMP.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-43
Command Descriptions
AWGControl:FG<n>:PHASe[:ADJust] (?)
AWG420, AWG430 and AWG520 Only
This command sets the phase of the function waveform on selected channel.
This query returns the phase of the function waveform.
AWGControl
Group
Syntax
:
:
Arguments
AWG Control
AWGControl:FG<n>:PHASe[:ADJust] <NRf>
AWGControl:FG<n>:PHASe[:ADJust]?
<n>::= channel
FG
PHASe
<n>
:
ADJust
<space>
<NRf> is the phase of the function waveform. The range is –6.28319
(–360degrees) to +6.28319(+360degrees).
Step:
AWG400FrequencyStep(degree)
1.000Hz to 20.00kHz0.036
20.01kHz to 200.0kHz0.36
200.1kHz to 2.000MHz3.6
2.001MHz to 4.000MHz7.2
4.001MHz to 5.000MHz9
5.001MHz to 8.000MHz14.4
8.001MHz to 10.00MHz18
<NRf>
?
2-44
AWG500FrequencyStep(degree)
1.000Hz to 100.0kHz0.036
100.1kHz to 1.000MHz0.36
1.001MHz to 5.000MHz1.8
5.001MHz to 10.00MHz3.6
10.01MHz to 20.00MHz7.2
20.01MHz to 25.00MHz9
25.01MHz to 40.00MHz14.4
40.01MHz to 50.00MHz18
50.01MHz to 100.0MHz36
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
At *RST, this value is set as 0.
Command Descriptions
Examples
AWGControl:FG1:PHASe 0.36DEGree
sets the CH1 phase to 0.36 degrees.
AWGControl:FG<n>:POLarity (?)
This command sets polarity of the function waveform on the selected channel.
This query returns polarity currently set.
AWGControl
Group
Syntax
:
AWG Control
AWGControl:FG<n>:POLarity {POSitive | NEGative}
AWGControl:FG<n>:POLarity?
<n>::= channel
FG
<n>
:
Arguments
Examples
<space>
POLarity
?
POSitive sets waveform to positive polarity.
NEGative sets waveform to negative polarity.
At *RST, this value is set to POSitive.
AWGControl:FG1:POLarity POSitive
sets the CH1 polarity to positive.
POSitive
NEGative
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-45
Command Descriptions
AWGControl:FG<n>:PULSe:DCYCle (?)
This command sets the duty cycle of the pulse waveform on selected channel.
This query returns the duty cycle of the pulse waveform.
AWGControl
Group
Syntax
:
:
Arguments
AWG Control
AWGControl:FG<n>:PULSe:DCYCle <NRf>
AWGControl:FG<n>:PULSe:DCYCle?
<n>::= channel
FG
PULSe
<n>
DCYCle
:
<NRf> is the duty cycle. The range is 0.1 to 99.9%.
Step:
AWG400FrequencyStep(%)
1.000Hz to 200.0kHz0.1
200.1kHz to 2.000MHz1
2.001MHz to 4.000MHz2
4.001MHz to 5.000MHz2.5
5.001MHz to 8.000MHz4
8.001MHz to 10.00MHz5
<space>
<NRf>
?
2-46
AWG500FrequencyStep(%)
1.000Hz to 1.000MHz0.1
1.001MHz to 5.000MHz0.5
5.001MHz to 10.00MHz1
10.01MHz to 20.00MHz2
20.01MHz to 25.00MHz2.5
25.01MHz to 40.00MHz4
40.01MHz to 50.00MHz5
50.01MHz to 100.0MHz10
AWG600FrequencyStep(%)
1.000Hz to 2.600MHz0.1
2.601MHz to 13.00MHz0.5
13.01MHz to 26.00MHz1
26.01MHz to 52.00MHz2
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
52.01MHz to 65.00MHz2.5
65.01MHz to 104.0MHz4
104.1MHz to 130.0MHz5
130.1MHz to 260.0MHz10
At *RST, this value is set as 10.0.
Command Descriptions
Examples
AWGControl:FG1:PULSe:DCYCle 20
sets the CH1 duty cycle to 20%.
AWGControl:FG[:STATe] (?)
This command turns the FG(Function Generation) mode on or off.
This query returns status indicating whether the waveform generator is set to the
function generator mode.
AWG Control
AWGControl:FG[:STATe] { OFF | ON | <NRf> }
AWGControl:FG[:STATe]?
FG
AWGControl
Group
Syntax
:
:
STATe
OFF
Arguments
OFF or <NRf>+0 sets the FG mode to OFF .
ON or <NRf>00 sets the FG mode to ON.At *RST, this value is set to OFF.
Examples
AWGControl:FG ON
sets the FG mode to ON.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
<NRf> is the amplitude of the waveform. The Step is 1mV.
The range is as follows.
2-48
Examples
AWG400(Standard) series : 0.020Vpp to 2.000Vpp
AWG400(Option 05) series : 0.020Vpp to 5.000Vpp
AWG500 series : 0.020Vpp to 2.000Vpp
AWG600 series : 0.020Vpp to 2.000Vpp
At *RST, this value is set to 1.0.
AWGControl:FG1:VOLTage 2.0
sets the CH1 amplitude to 2.000Vpp.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
<NRf> is the offset of the waveform. The Step is 1mV.
The range is as follows.
<NRf>
AWG400(Standard) series : –1.000V to +1.000V
AWG400(Option 05) series : –2.500V to +2.500V
AWG500 series : –1.000V to +1.000V
AWG600 series : –1.000V to +1.000V
At *RST, this value is set to 0.0.
Examples
AWGControl:FG1:VOLTage:OFFSet 0.5
sets the CH1 offset to 0.5V.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-49
Command Descriptions
AWGControl:RMODe (?)
This command selects the mode used to output waveforms or sequences.
<file_name>::=<string> specifies the file to store the settings.
<msus> (mass storage unit specifier)::=<string> is the media on which
the file exists:
MAINInternal hard disk drive
FLOPpyInternal floppy disk drive
NET1, NET2, or NET3Network drive 1, 2, or 3 (specified with
the SYSTem:COMMunicate:LAN commands)
AWGControl:SSAVe "SAMPLE1.SET","FLOPpy"
stores the current settings to the file SAMPLE1.SET on the floppy disk.
AWGControl:STOP[:IMMediate] (No Query Form)
This command terminates waveform output. When the mode is not set to
continuous, it also resets the sequence pointer to output the waveform from the
top of the sequence with the next trigger event.
Group
Related Commands
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
AWG Control
AWGControl:RUN[:IMMediate], *TRG
2-53
Command Descriptions
Syntax
Arguments
Examples
*CAL? (Query Only)
AWGControl:STOP[:IMMediate]
AWGControl
:
STOP
:
IMMediate
None
AWGControl:STOP[:IMMediate]
stops the output of a waveform.
The *CAL? query performs an internal calibration and returns a status that
indicates whether or not the waveform generator completed the calibration
successfully. If an error is detected during calibration, execution immediately
stops, and an error code is returned. This query performs the same function as
the CALibration[:ALL]? query.
NOTE. A period of time is required to complete the internal calibration. During
this time, the waveform generator does not respond to any commands or queries
issued.
2-54
Group
Related Commands
Syntax
Arguments
Returns
Calibration
CALibration[:ALL]?
*CAL?
*CAL
?
None
<NR1>
0Terminated without error.
–340Calibration failed.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Descriptions
Examples
CALibration[:ALL] (?)
*CAL?
performs an internal calibration and returns the results. For example, the query
might return 0, which indicates the calibration terminated without any errors.
The CALibration[:ALL] command performs a full calibration of the waveform
generator.
The CALibration[:ALL]? query performs a full calibration and responds with a
<NR1> indicating the success of the calibration. This query has the same function
as the *CAL? query.
If an error is detected during calibration, a message is queued in the error/event
queue, and the error code “–340” is returned.
NOTE. A period of time is required to complete the internal calibration. During
this time, the waveform generator does not respond to any commands or queries
issued.
Group
Related Commands
Syntax
Arguments
Returns
Examples
Calibration
*CAL?
CALibration[:ALL]
CALibration[:ALL]?
CALibration
None
<NR1>
0Terminated without error.
–340Calibration failed.
CALibration[:ALL]
performs a full calibration.
:
ALL
?
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-55
Command Descriptions
*CLS (No Query Form)
CALibration[:ALL]?
performs a full calibration and returns the results. For example, it might return 0,
which indicates the calibration terminated without any errors.
This command clears all the event registers and queues, used by the waveform
generator status and event reporting system. For more details, refer to the, Statusand Events section.
Group
Syntax
Arguments
Examples
Status
*CLS
*CLS
None
*CLS
clears all the event registers and queues.
DIAGnostic:DATA? (Query Only)
This command returns the results of a self-test.
Group
Related Commands
Diagnostic
DIAGnostic[:IMMediate], DIAGnostic:SELect
2-56
Syntax
Arguments
Returns
DIAGnostic:DATA?
DIAGnostic
None
<NR1>
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
:
DATA
?
0Terminated without error.
–330Self-test failed.
Command Descriptions
Examples
DIAGnostic:DATA?
might return 0.
DIAGnostic[:IMMediate] (?)
The DIAGnostic[:IMMediate] command executes the self-test routine(s)
selected by the DIAGnostic:SELect command. The query DIAGnostic[:IMMediate]? executes the routine(s) and returns the results.
If an error is detected during execution, the routine that detected the error
terminates. If all of the self-test routines are selected, self-testing continues with
execution of the next self-test routine.
Group
Related Commands
Syntax
Diagnostic
DIAGnostic:SELect, DIAGnostic:DATA?
DIAGnostic[:IMMediate]
DIAGnostic[:IMMediate]?
:
DIAGnostic
Arguments
Returns
Examples
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
None
<NR1>
0Terminated without error.
–330Self-test failed.
DIAGnostic:SELect ALL;IMMediate?
executes all of the self-test routines. After all self-test routines finish, the results
of the self-tests are returned.
IMMediate
?
2-57
Command Descriptions
DIAGnostic:SELect (?)
This command selects the self-test routine(s).
Group
Related Commands
Syntax
Diagnostic
DIAGnostic[:IMMediate]
DIAGnostic:SELect { ALL | OUTPut | RMODe | ROSCillator
| SMEMory | SYSTem | WMEMory }
DIAGnostic:SELect?
ALL
OUTPut
RMODe
ROSCillator
SMEMory
DIAGnostic
<space>
:
SELect
SYSTem
WMEMory
?
2-58
Arguments
You can select the following self-test routines:
Table 2-22: SelfĆtest routines
ArgumentDescription
ALLChecks all routines that follow
OUTputChecks the analog output unit
RMODeChecks the control unit
ROSCillatorChecks the reference oscillator unit
SMEMoryChecks the sequence memory
SYSTemChecks the system unit, such as the system memory
WMEMoryChecks the waveform memory
At *RST, this parameter is set to ALL.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Command Descriptions
Examples
DISPlay:BRIGhtness (?)
AWG500/600 series Only
Group
Syntax
Arguments
DIAGnostic:SELect WMEMory;IMMediate
executes the waveform memory self-test routine.
This command controls the intensity of the display.
Display
DISPlay:BRIGhtness <NR2>
DISPlay:BRIGhtness?
<space>
DISPlay
<NR2> ranges from 0 to 1, where 1 is full intensity and 0 is fully blanked.
:
BRIGhtness
<NRf>
?
Examples
DISPlay:ENABle (?)
AWG400 series Only
Group
Syntax
At *RST, this value is set to 0.7.
DISPlay:BRIGhtness 0.8
sets the intensity of the display to 80% of maximum intensity.
This command controls ON/OFF of the display.
Display
DISPlay:ENABle { OFF | ON | <NR1> }
DISPlay:ENABle?
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-59
Command Descriptions
OFF
DISPlay
Arguments
OFF or <NR1>+0 sets OFF the display.
ON or <NR1>00 sets ON the display.At *RST, this value is set to OFF.
Examples
DISPlay:ENABle ON
sets ON the display.
DISPlay:HILight:COLor (?)
AWG400 series Only
This command controls the HILight color.
Group
Display
<space>
:
ENABle
ON
<NR1>
?
Syntax
DISPlay:HILight:COLor <NR1>
DISPlay:HILight:COLor?
DISPlay:
Arguments
:
HILight
<NR1> is the color number. The range is 0 to 7.
At *RST, this value is set to 0.
Returns
Examples
<NR1> indicates the number of color.
DISPlay:HILight:COLor 1
sets the number 1 color.
COLor
<space>
<NR1>
?
2-60
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
*ESE (?)
Command Descriptions
The *ESE command sets the bits of the ESER (Event Status Enable Register)
used in the status and events reporting system of the waveform generator. The
*ESE? query returns the contents of the ESER. Refer to the Status and Events for
more information about the ESER.
Group
Related Commands
Syntax
Arguments
Examples
Status
*CLS, *ESR?, *PSC, *SRE, *STB?
*ESE <bit_value>
*ESE?
*ESE
<bit_value>::=<NR1>
where <NR1> is a decimal integer in the range 0 to 255. The binary bits of the
ESER are set according to this value.
The power-on default for ESER is 0 if *PSC is 1. If *PSC is 0, the ESER
maintains its value through a power cycle.
*ESE 177
sets the ESER to 177 (binary 10110001), which sets the PON, CME, EXE and
OPC bits.
<space><bit_value>
?
*ESE?
might return 176, which indicates that the ESER contains the binary number
10110000.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-61
Command Descriptions
*ESR? (Query Only)
This command returns the contents of the Standard Event Status Register
(SESR) used in the status and events reporting system in the waveform
generator. *ESR? also clears the SESR (since reading the SESR clears it). Refer
to Section 3 Status and Events for more information.
Group
Related Commands
Syntax
Returns
Examples
Status
*CLS, *ESE?, *SRE, *STB?
*ESR?
*ESR
<NR1> indicates the content of the SESR in a decimal integer.
*ESR?
might return 181, which indicates that the SESR contains the binary number
10110101.
?
HCOPy:DESTination (No Query Form)
This command sets the hardcopy destination. For the waveform generator, the
destination is always set to MMEMory (mass memory). This command is
included only for compatibility with the SCPI standard. The destination file on
the mass memory device is specified by the MMEMory:NAME command. For more
information about hardcopy, see Hardcopy Commands on page 2–22.
2-62
Group
Related Commands
Syntax
Arguments
Hardcopy
MMEMory:NAME
HCOPy:DESTination <data_handle>
HCOPy:
<data_handle>::=<string>
where <string> is fixed to ”MMEMory” for the waveform generator.
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
DESTination
<data_handle><space>
Command Descriptions
Examples
HCOPy:DESTination "MMEMory"
sets the hardcopy destination to a file specified with the MMEMory:NAME
command.
HCOPy:DEVice:COLor (?)
AWG400 series Only
This command sets the hardcopy color mode.
Group
Related Commands
Syntax
Hardcopy
HCOPy:DEVice:LANGuage
HCOPy:DEVice:COLor { OFF | ON | <NR1> }
HCOPy:DEVice:COLor?
<space>
OFF
ON
HCOPy
Arguments
DEVice
:
OFF or <NR1>+0 sets the hardcopy color mode to OFF.
ON or <NR1>00 sets the hardcopy color mode to ON.At *RST, this value is set to OFF.
Examples
HCOPy:DEVice:COLor ON
sets the hardcopy color mode to ON.
HCOPy:DEVice:LANGuage (?)
This command sets the hardcopy data format.
Group
Related Commands
Hardcopy
HCOPy:DEVice:COLor
<NR1>
:
COLor
?
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-63
Command Descriptions
Syntax
HCOPy:DEVice:LANGuage { BMP | TIFF }
HCOPy:DEVice:LANGuage?
DEVice
Arguments
HCOPy
:
BMP specifies the Windows bitmap file format.
TIFF specifies the TIFF format.At *RST, the parameter is set to BMP.
Examples
HCOPy:DEVice:LANGuage TIFF
specifies the TIFF data format for hardcopy.
HCOPy[:IMMediate] (No Query Form)
BMP
LANGuage
:
<space>
TIFF
?
Group
Related Commands
Syntax
Arguments
Examples
This command immediately initiates hardcopy output according to the current
HCOPy setup parameters. For the waveform generator, this command is the
same as HCOPy:SDUMp[:IMMediate]. For more information about hardcopy, see
Hardcopy Commands on page 2–22.
Hardcopy
HCOPy:DESTination, HCOPy:SDUMp[:IMMediate]
HCOPy[:IMMediate]
HCOPy
:
IMMediate
None
HCOPy:IMMediate
starts hardcopy output.
2-64
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
HCOPy:SDUMp[:IMMediate] (No Query Form)
This command initiates a screen dump of the entire screen. For the waveform
generator, this is the same as the HCOPy[:IMMediate] command. For more
information about hardcopy, see Hardcopy Commands on page 2–22.
Command Descriptions
Group
Syntax
Arguments
Examples
*IDN? (Query Only)
Group
Hardcopy
HCOPy:SDUMp[:IMMediate]
HCOPySDUMp
None
MMEMory:NAME "SAMPLE1.BMP";:HCOPy:SDUMp:IMMediate
prints the entire screen to the file SAMPLE1.BMP.
This command returns identification information for the waveform generator.
System
:
:
IMMediate
Syntax
Arguments
Returns
Examples
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
where:
The first <NR1> is the total amount of storage currently used, in bytes.
For the network drives, <NR1>+0.
?
<space><msus>
2-66
Examples
The second <NR1> is the total amount of storage available.
For the network drives, <NR1>+0.
<file_name>,<file_type>,<file_size>::=<string>
where
<file_name> is the exact name of a file,
<file_type> is DIR for directory, otherwise it is blank, and
<file_size> is the size of the file, in bytes.
MMEMory:CATalog? "MAIN"
might return the following response:
484672,3878652,"SAMPLE1.WFM,2948"
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
MMEMory:CDIRectory (?)
This command changes the default directory for a mass memory file system. The
default mass storage device is selected by MMEMory:MSIS command.
Command Descriptions
Group
Related Commands
Syntax
Arguments
Examples
Mass Memory
MMEMory:CDIRectory, MMEMory:MSIS
MMEMory:CDIRectory [<directory_name>]
MMEMory:CDIRectory?
MMEMory
<directory_name>::=<string>
is the default directory for a mass memory file system.
If you do not specify a parameter, the directory is set to the *RST value.
At *RST, this parameter is set to the root.
MMEMory:CDIRectory "/AWG/WORK0"
changes the default directory to /AWG/WORK0.
:
CDIRectory
<space><directory_name>
?
MMEMory:CLOSe (No Query Form)
This command closes the file specified in the MMEMory:NAME command. This
command is included only for compatibility with the SCPI standard and may not
be used.
Group
Related Commands
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Mass Memory
MMEMory:NAME, MMEMory:OPEN
2-67
Command Descriptions
Syntax
Arguments
Examples
MMEMory:CLOSe
MMEMory
None
MMEMory:NAME "SAMPLE1.WFM";CLOSe
closes the file SAMPLE1.WFM.
MMEMory:COPY (No Query Form)
This command copies an existing file to a new file. An error is generated if the
source file does not exist.
<file_name>::=<string> specifies the file to be loaded with data.
<data> is in 488.2 block format.
Examples
MMEMory:DATA "FILE1",#41024xxxxx...
loads data into the file FILE1.
MMEMory:DELete (No Query Form)
<space>
<file_name>
,<data>
?
This command removes a file from the specified mass storage device.
Group
Related Commands
Syntax
MMEMory<space>,DELete<msus>
Mass Memory
MMEMory:CDIRectory, MMEMory:MSIS
MMEMory:DELete <file_name>[,<msus>]
:
<file_name>
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
2-69
Command Descriptions
Arguments
Examples
MMEMory:FEED (?)
Group
<file_name>::=<string> specifies the file to be removed.
<msus> (mass storage unit specifier)::=<string> is the media on which
the file exists:
MAINInternal hard disk drive
FLOPpyInternal floppy disk drive
NET1, NET2, or NET3Network drive 1, 2, or 3 (specified with
the SYSTem:COMMunicate:LAN commands)
MMEMory:DELete "FILE1.WFM","FLOPpy"
removes the file FILE1.WFM on the floppy disk.
This command sets the data handle to be used to feed data into the file specified
by MMEMory:NAME. For the waveform generator, the data handle is fixed to
HCOPy. This command is included only for compatibility with the SCPI standard,
and may not be used (refer to Hardcopy Commands on page 2–22).
Mass Memory
Related Commands
Syntax
Arguments
Examples
MMEMory:NAME
MMEMory:FEED <data_handle>
MMEMory:FEED?
<data_handle>
?
MMEMory
<space>
:
FEED
<data_handle>::=<string> for the waveform generator, the data handle is
fixed to HCOPy.
At *RST, this parameter is set to ”HCOP”.
MMEMory:FEED "HCOPy"
sets the data handle.
2-70
AWG400/500/600 Series Arbitrary Waveform Generator Programmer Manual
Loading...
+ 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.