that in all previously published material. Specifications and price change privileges reserved.
T ektronix, Inc., P.O. Box 500, Beaverton, OR 97077
TEKTRONIX and TEK are registered trademarks of T ektronix, Inc.
This is the Programmer Manual for the DG2020A Data Generator and Pods.
This manual provides information on operating these instruments using General
Purpose Interface Bus (GPIB) interface and RS-232-C interface.
This manual provides the following information:
HGetting Started describes how to connect and set up for remote operation.
HSyntax and Commands defines the command syntax and processing
conventions and describes each command in the data generator command
set.
HStatus and Events explains the status information and event messages
reported by the data generator.
HAppendices contains various topics of use to the programmer.
HGlossary and Index contains a glossary of common terms and an index to
this manual.
Related Manuals
Other documentation for the data generator includes:
HThe User Manual that describes the operation of the Data Generator that was
supplied as a standard accessory with the instrument.
HThe Service Manual (optional accessory) provides information for maintain-
ing and servicing the Data Generator.
DG2020A Programmer Manual
v
Preface
vi
DG2020A Programmer Manual
Getting Started
Overview
The Data Generator has two interfaces for remote operation — the GPIB interface
and the RS-232-C interface. All menu controlled and front-panel controlled
functions, except the ON/STBY function, the edit function, and the GPIB and
RS-232-C parameter setup functions, can be controlled through the GPIB or the
RS-232-C interface using the programming command set (see Section 2).
The GPIB interface conforms to ANSI/IEEE Std 488.1-1987, which specifies the
hardware interface, its basic functional protocol, and a set of interface messages
(codes) that control the interface functions. This instrument also conforms to
ANSI/IEEE Std 488.2-1987 which specifies Codes, Formats, Protocols, and
Common Commands to support the system application. The functional layers of
the GPIB system are shown in Figure 1-1.
BUS
DeviceĆspecific Messages
Common Commands and Queries
Syntax and Data Structures
Remote INTFC Messages
D
CBAABCD
System Component xSystem Component y
Specified
by
Device
IEEE 488.2
Standard
A: Interface Function Layer
B: Message Communication Function Layer
C: Common System Function Layer
D: Device Function Layer
IEEE 488.1
Standard
Figure 1Ć1: Functional layers in gpib system
IEEE 488.2
Standard
Specified
by
Device
DG2020A Programmer Manual
1Ć1
Getting Started
Choosing an Interface
The RS-232-C interface, which was established by the Electronic Industries
Association (EIA), provides a common basis of communication between devices
that exchange data. This interface has long been used on terminals, modems,
printers, and other devices. The RS-232-C interface that the data generator
provides also uses most of the same Codes, Formats, Protocols, and Common
Commands as are used with the GPIB interface (ANSI/IEEE Std 488.2-1987).
Your system hardware may let you choose which interface to use with your
system; if so, you should consider the comparative advantages and disadvantages
of each interface. For example, the GPIB interface is an eight-bit parallel bus and
therefore it offers high-speed data transfers and multiple instrument control. In
contrast, the RS-232-C interface is a slower serial data bus for single instrument
control, but it is easy to connect to and can be used with a low-cost controller.
Table 1-1 compares the GPIB and RS-232-C interface.
Table 1Ć1: GPIB and RSĆ232ĆC comparison
Operating attributeGPIBRSĆ232ĆC
CableANSI/IEEE Std 4889Ćwire (DCE)
Data flow controlHardware, 3Ćwire handshakeFlagging: soft (XON/XOFF),
hard (DTR/CTS)
Data format8Ćbit parallel8Ćbit serial
Interface controlOperator lowĆlevel control
message
Interface messagesMost ANSI/IEEE Std 488Device clear via ASCII break
Interrupts reportedService requests
status and event code
Message termination
(Receive)
Message termination
(Transmit)
TimingAsynchronousAsynchronous
Transmission path length≤2 meters between devices;
Speed200 Kbytes/sec19,200 bits/sec
Hardware EOI, software LF, or
both
Hardware EOI, and softwareLFSoftware LF
≤20 meters total cabling for
GPIB system
None
signal
Status and event code
(no service requests)
Software CR, LF, or CR and
LF
≤15 meters
1Ć2
System environmentMultiple devices (≤15)Single terminal (point to point
connection)
DG2020A Programmer Manual
Installing for GPIB Communication
With the power off, connect a GPIB cable from the GPIB controller to the
ANSI/IEEE Std 488 port (GPIB) connector on the rear panel of the data
generator (see Figure 1-2). For example, when using an MS-DOS compatible
controller, connect the GPIB cable between the National Instrument PC2A GPIB
board and the data generator GPIB connector.
GPIB Connector
Getting Started
POD C
POD B
POD A
IEEE STD 488 PORT
RS-232-C
CALIBRATION
CLOCK IN
CLOCK OUT
Figure 1Ć2: GPIB connector
Instruments can be connected to the GPIB in linear or star configurations or in a
combination of both configurations. A linear hookup is one where a GPIB cable
is used to string one device to a second, and then another GPIB cable is used to
string from a second to a third, and so on until all devices in the system are
connected. A star setup is one where one end of all the GPIB cables in the
system are attached to one device. Refer to Figure 1-3 for these GPIB system
configurations.
DG2020A Programmer Manual
1Ć3
Getting Started
C
Star Configuration
BD
A
Restrictions
F
A
D
BCDEF
E
A
C
E
Linear Configuration
Combination of Star and
Linear Configurations
F
GH
B
Figure 1Ć3: GPIB system configurations
Consider the following rules when distributing instruments on the GPIB:
1Ć4
1. No more than 15 total devices (including the controller) can be included on a
signal bus.
2. In order to maintain the electrical characteristics of the bus, one device load
must be connected for every two meters of cable (most often, each device
represents one device load to the bus).
3. The total cable length (cumulative) must not exceed 20 meters.
4. At least two-thirds of the device loads must be powered on.
DG2020A Programmer Manual
Getting Started
Setting the GPIB
Parameters
To set the GPIB parameters, proceed as follows:
1. Press the UTILITY button in the MENU column to the right of the screen.
The UTILITY menu appears above the bottom menu buttons.
2. Press the System bottom menu button to display the System menu (See
figure 1-4).
3. Select the Configure item from the GPIB menu using the up and down arrow
buttons. Set the GPIB operating mode using the left and right arrow buttons.
HTalk/Listen. Sets the communications mode to talk/listen.
HTalk Only. Sets the communications mode to talk only, which is used for
hardcopy output.
HOff Bus. Logically disconnect the data generator from GPIB system.
NOTE. The data generator accepts as a terminator either the software LF (Line
Feed), sent as the last data byte, or the hardware EOI, with the EOI line asserted
concurrently with the last data byte sent.
4. Select the Address item from the GPIB menu using the up and down arrow
buttons. Then use the rotary knob to set the primary address to a value in the
range 0 to 30.
GPIB Menu
5. Select the Remote Port item using the up and down arrow buttons, and
additionally, highlight ”GPIB” using the left and right arrow buttons. This
selects the GPIB as the remote interface.
Figure 1Ć4: GPIB parameter settings
DG2020A Programmer Manual
1Ć5
Getting Started
Installing for RSĆ232ĆC Communication
Connect an RS-232-C cable from the computer terminal to the RS-232-C
connector on the rear panel of the data generator. Use a configuration based on
the settings for the data flow control (flagging).
The RS-232-C provides a point-to-point connected communication interface
between devices (see Figure 1-5). The data generator can transmit and receive the
same message serially over the RS-232-C interface as it can in parallel over the
GPIB interface.
Controller
Figure 1Ć5: RSĆ232ĆC pointĆtoĆpoint connection
Several connectors are used with the RS-232-C interface: a DTE device uses a
standard 25-pin male D-type shell connector; a DCE device uses a standard
25-pin female D-type shell connector. Some recent computers implement the
RS-232-C interface using 9-pin D-type connector.
This data generator uses a standard 9-pin D-type shell connector, provided on the
rear panel (see Figure 1-6), along with a 9-pin male to 25-pin male conversion
cable. Figure 1-7 on page 1-8 shows both 9-pin and 25 pin connectors with
their pin number assignments.
DG2020A
1Ć6
DG2020A Programmer Manual
IEEE STD 488 PORT
Getting Started
POD C
POD B
POD A
RS-232-C
CLOCK IN
CLOCK OUT
RSĆ232ĆC
Connector
CALIBRATION
Figure 1Ć6: RSĆ232ĆC port
This data generator is designed as DCE device. You may connect it up to
15 meters (50 feet) from a DTE device using a straight-through male-to-female
cable. However, if the other device is instead configured as a DCE device, you
will need a special adapter or null-modem cable for local DCE-to-DCE
communications. Refer to the wiring examples in the Figure 1-8 for the proper
signal connections between devices.
NOTE.
available.
In this data generator, only TxD, RxD, DTR, CTS pins and Signal Ground are
DG2020A Programmer Manual
1Ć7
Getting Started
Pin
9ĆPIN DĆSHELL
1
2
6
7
8
9
NOTE: TxD, RxD, DTR, CTS and Ground lines are only available
in the data generator.
Receive Data (RxD)3
2
3 Transmit Data (TxD)2
3
4 Data Terminal Ready (DTR) 20
4
5 Signal Ground7
5
8 Clear to Send (CTS)5
25ĆPIN DĆSHELL
14
15
16
17
18
19
20
21
22
23
24
25
1
2
3
4
5
6
7
8
9
10
11
12
13
Figure 1Ć7: Pin assignments of 9Ćpin and 25Ćpin DĆtype shell connector
PinPinPin
2
3
4
5
8
9Ćpin DCE to 9Ćpin DTE9Ćpin DCE to 9Ćpin DCE
2
3
4
5
8
2
3
4
5
8
2
3
4
5
8
PinPin
2
3
4
5
8
9Ćpin DCE to 25Ćpin DTE
NOTE: When using software flow control, the CTSĆDTR lines do not need to be connected.
To set the RS-232-C parameters, perform the following steps:
1. Press the UTILITY button in the MENU column to the right of the screen.
The UTILITY menu appears above the bottom menu buttons.
2. Press the System bottom menu button to display the System menu (See
figure 1-9).
3. Select the Baudrate item from the Serial menu using the up and down arrow
buttons. Here select the data transfer rate using the left and right arrow
buttons. The rate can be set to 300, 600, 1200, 2400, 4800, 9600, or 19200
baud.
4. Select the Data Bits item from the Serial menu using the up and down arrow
buttons. Then use the left and right arrow buttons to select the data bit length
for each character. The bit length can be set to either 7 or 8 bits.
5. Select the Parity item from the Serial menu using the up and down arrow
buttons. Then use the left and right arrow buttons to set the error check bit
for each character. The error bit can be set to None, Even, or Odd parity.
6. Select the Stop Bits item from the Serial menu using the up and down arrow
buttons. Then use the left and right arrow buttons to select the number of
stop bits sent after each character. The number of stop bits can be set to
either 1 or 2.
Serial Menu
7. Select the Handshake item from the Serial menu using the up and down
arrow buttons. Then use the left and right arrow buttons to select the method
of controlling the flow of data between devices. The data flow method can
be set to Hard (DTR/CTS), Soft (XON/XOFF), and Off (no flow control).
8. Select the Remote Port item using the up and down arrow buttons, and
additionally, highlight ”RS232C” using the left and right arrow buttons. This
selects the RS-232-C interface as the remote interface.
Figure 1Ć9: RSĆ232ĆC parameter settings
DG2020A Programmer Manual
1Ć9
Getting Started
1Ć10
DG2020A Programmer Manual
Command Syntax
A large set of commands can be used to control the operations and functions of
the data generator from an external controller. This section describes the syntax
and communication rules for using these commands to operate the data
generator.
Command Notation
The command syntax is in extended BNF (Backus-Naur Form) notation. The
extended BNF symbols used in the command set are shown in the following
table.
Table 2Ć1: BNF symbols and meanings
SymbolMeaning
<ą>Indicates a defined element
|Delimits Exclusive OR elements
{ą}Delimits a group of elements one of which the programmer must select
[ą]Delimits an optional element that the programmer may omit
[ą]...Delimits an optional element that the programmer may omit or may repeat one
::=Indicates that the left member is defined as shown by the the right member
Program and Response Messages
Programs created or placed in an external controller are transferred to the data
generator as a program message. A program message is a sequence of zero or
more program message units delimited by the program message unit delimiter,
the semicolon (;).
A program message unit is a set command or query command. The data
generator performs a function or changes a setting or mode when it receives a set
command; when it receives a query command, it returns measurement data,
settings, status codes and/or status messages. The data generator transfers these
response messages to the external controller.
or more times
DG2020A Programmer Manual
2Ć1
Command Syntax
Command and Query Structure
Commands are either set commands or query commands (usually just called
commands and queries in this manual). Most commands have both a set form
and query form. The query form of a command is the same as the set form,
except that the query form ends with a question mark.
Figure 2-1 shows a flowchart of the structure of the commands and queries. The
structure of the header is described in detail in Header on page 2-6.
Command
,
Character Encoding
Header
Mnemonic
Argument
,
?
:
:
Header
Mnemonic
Argument
?
,
Argument
,
Argument
Command
Query
Query
Query
Command
Command
Figure 2Ć1: Command and query structure flowchart
The program can be described using the American Standard Code for Information Interchange (ASCII) character encoding.
2Ć2
This seven-bit ASCII code is used for the majority of syntactic elements and
semantic definitions. In special cases, an eight-bit ASCII Code is allowed in the
arbitrary block arguments described on page 2-5. The ASCII code character set
table is found in Appendix A.
DG2020A Programmer Manual
Syntactic Delimiters
Command Syntax
Syntactic elements in a program message unit are delimited (differentiated) with
colons, white space, commas, or semicolons.
Colon (:). Typically delimits the compound command header.
MMEMORY:DELETE:ALL, SOURCE:OSCILLATOR:SOURCE
White Space. Typically delimits command/query headers from the argument.
DIAGNOSTIC:SELECT ALL
SYSTEM:DATE 1995,3,4
DIAGNOSTIC:SELECT and SYSTEM:DATE are the command headers, and ALL and
1995,3,4 are the arguments.
Comma (,). Typically delimits between multiple arguments. In the above
example, a comma delimits the multiple arguments 1995, 3 and 4.
White Space
Special Characters
Semicolon (;). Typically delimits between multiple commands (or multiple
program message units). For more information about using the semicolon, refer
to Concatenating Commands on page 2-8.
White space, which is used to delimit certain syntactic elements in a command,
is defined in the data generator as a single ASCII-encoded byte in the range
ASCII 0-32 (decimal). This range consists of the standard ASCII characters
exclusively except for ASCII 10, which is the Line Feed (LF) or New Line (NL)
character.
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.
DG2020A Programmer Manual
2Ć3
Command Syntax
Arguments
In a command or query, one or more arguments follow the command header. The
argument, sometimes called program data, is a quantity, quality, restriction, or
limit associated with the command or query header. Depending on the command
or query header given, the argument is one of the following types:
HDecimal Numeric
HString
HArbitrary Block
Decimal Numeric
The data generator defines a decimal numeric argument as one expressed in one
of three numeric representations — NR1, NR2, or NR3. This definition complies
with that found in ANSI/IEEE Std 488.2-1987. Any commands that use
arguments in any of the the first three notations can use a fourth notation NRf
(for Numerical Representation flexible). The four formats are shown in Table
2-2.
As just implied, you can use NRf notation for arguments in your programs for
any commands that this manual lists as using any of NR1, NR2, or NR3 notation
in its arguments. Be aware, however, that query response will still be in the
format specified in the command. For example, if the command description is
:DESE <NR1>, you can substitute NR2 or NR3 when using the command in a
program. However, if you use the query :DESE?, the data generator will respond
in the format <NR1> to match the command description in this manual.
2Ć4
Unit and SI Prefix
If the decimal numeric argument refers to a voltage or frequency, you can
express it using SI units instead of in the scaled explicit point input value format
<NR3>. (SI units are units that conform to the Systeme International d’Unites
standard.) For example, you can use the input format 200mV or 1.0MHz instead
of 200.0E–3 or 1.0E+6, respectively, to specify voltage or frequency.
DG2020A Programmer Manual
Command Syntax
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
The SI prefixes, which must be included, are shown below. Note that either
lower or upper case prefixes can be used.
String
SI prefix
Corresponding Power10
1
1
Note that the prefix m/M indicates 10-3when the decimal numeric argument denotes
voltage, but 10
6
when it denotes frequency.
m/Mk/Km/M
-3
10
3
10
6
String, sometimes referred to as a string literal, a literal, or just a string, is
defined as a series of characters enclosed by double quotation marks (”) as in:
"This is a string constant"ąąorąą"0 .. 127"
To include a double quoted character in the string, insert an additional double
quote character ahead of the double quote character in the string. For example,
the string:
serial number "B010000"
would be defined as:
"serial number ""B010000"""
Single quotation marks (’) can also be used instead of double quotation marks.
For instance:
Arbitrary Block
DG2020A Programmer Manual
'serial number ''B010000'''
String constants may be of any length up to the memory limits of the instrument
in which the message is parsed.
An arbitrary block argument is defined as:
#<byte count digit><byte count>[<contiguous eightĆbit data
byte>]...
or:
#<contiguous eightĆbit data byte]... <terminator>
2Ć5
Command Syntax
Header
where:
<byte count digit>::= a nonzero digit in the range ASCII 1–9 that defines the
number of digits (bytes) in the <byte count> field.
<byte count>::= any number of digits in the range ASCII 0–9 that define how
many bytes are in the <contiguous 8Ćbit data byte> field.
<contiguous 8Ćbit data byte>::= a <byte count> number of 8-bit bytes in
the range ASCII 0–255 that define the message. Each byte defines one character.
<terminator>::= a software LF followed by a hardware EOI. For example,
#16AB4ZLT<LF><&EOI>
Header Mnemonic
Pod and Channel
Representation
Header Structure
The header mnemonic represents a header node or a header subfunction. The
command or query header comprises one or more header mnemonics that are
delimited with the colon (:).
The pod and channel can be specified by using the OUTPut:POD<s>:CH<n>
header mnemonic in commands and query commands. The term <s> is either A,
B, or C, and expresses the connected pattern data output connector for the pod
being specified. The term <n> is a number between 0 and 11 that expresses the
specified channel.
Commands and queries can be structured into six basic forms.
Compound Command Header. A command that contains multiple header
mnemonics plus argument(s). Its message format is:
[:]<Header Mnemonic>[:<Header Mnemonic>]...
[<Argument>[,<Argument>]...]
such as:
MMEMORY:INITIALIZE HD1
or
SYSTEM:SECURITY:STATE ON
Compound Query Header. A command that contains multiple header mnemonics
followed by a question mark (?). Its message format is:
[:]<Header Mnemonic>[:<Header Mnemonic>]...?
[<Argument>[,<Argument>]...]
such as:
DIAGNOSTIC:RESULT?
or
DATA:BLOCK:SIZE? "BLOCK1"
DG2020A Programmer Manual
2Ć7
Command Syntax
Common Command Header. A command that precedes its header mnemonic with
an asterisk (*). Its message format is:
<Header Mnemonic> [<Argument>[,<Argument>]...]
such as:
*RST
The common commands are defined by IEEE Std 488.2 and are common to all
devices which support IEEE Std 488.2 on the GPIB bus.
Common Query Header. A command that precedes its header mnemonic with an
asterisk (*) and follows it with a question mark (?). Its message format is:
<Header Mnemonic>? [<Argument>[,<Argument>]...]
such as:
*IDN?
The common commands are defined by IEEE Std 488.2 and are common to all
devices which support the IEEE Std 488.2 on the GPIB bus.
Concatenating Commands
Most of the compound command headers are in a tree structure. The tree
structure of an example command is diagrammed below. Note that the top of the
structure always begins with a colon (:).
You must include the complete path in each header when there is no common
complete path to the start of the tree structure (the colon). However, note that
part of each header in the above example has a common path :DATA:BLOCK. You
DG2020A Programmer Manual
Command Syntax
may shorten compound command structures with such headers. For example, the
command above may be rewritten as follows.
Note that the mnemonics :DATA and :BLOCK are assumed from the first header
by the headers that follow. The following command descriptions are valid
examples of commands shortened using the principle just described. (Note that
the insertion of common command (*SRE) between headers does not prevent the
headers that follow from assuming the earlier header mnemonics.)
The query causes the data generator to return information about its status or
settings. A few queries also initiate an operation action before returning
information; for instance, the *TST? query performs the self test.
If the programmer has enabled headers to be returned with query responses, the
data generator formats a query response like the equivalent set-command header
followed by its argument(s). When headers are turned off for query responses,
only the values are returned. Table 2-3 shows the difference in query responses.
Use the command HEADER ON when you want the header returned along with the
information. You can save such a response and send it back as a set-command
later. Use HEADER OFF when you want only the information back.
Other General Command Conventions
Upper and Lower Case
Abbreviation
The instrument accepts upper, lower, or mixed case alphabetic messages. The
following three commands are recognized as identical.
HEADER ON
or
header on
or
header On
Any header, argument, or reserved word that is sent to the data generator can be
abbreviated. The minimum required spelling is shown in upper case throughout
the subsection Command Groups beginning on page 2-11. The command
TRIGger:SLOPe POSitive can be rewritten in either of the following forms.
TRIGGER:SLOPE POSITIVE
or
TRIG:SLOP POS
2Ć10
DG2020A Programmer Manual
Command Groups
This subsection describes the organization of the DG2020A Data Generator
command as a number of functional groups. (See subsection CommandDescriptions on page 2-19 for a complete description of each command in
alphabetical order.)
Throughout this section, the parenthesized question symbol (?) follows the
command header to indicate that both a command and query form of the
command can be used.
Command Summaries
Tables 2-4 through 2-14 describe each command in each of the 11 functional
groups.
DATA Commands
The DATA commands are used to define blocks, groups, and sequences, to set up
pattern data, and to set which sequence controls become valid when the run
mode is set to Enhanced.
Table 2Ć4: DATA commands
HeaderDescription
DATA?Query the settings related to pattern data
DATA:BLOCk:ADDAdd a block definition
DATA:BLOCk:DEFine(?)Set the block definitions
DATA:BLOCk:DELeteDelete a block definition
DATA:BLOCk:DELete:ALLDelete all block definitions
DATA:BLOCk:RENameChange a block name
DATA:BLOCk:SIZe(?)Change the size of a block
DATA:GROUp:ADDAdd a group definition
DATA:GROUp:BIT(?)Change a groups bit structure
DATA:GROUp:DEFine(?)Sets the group definitions
DATA:GROUp:DELeteDelete a group definition
DATA:GROUp:DELete:ALLDelete all group definitions
DG2020A Programmer Manual
DATA:GROUp:NAME?Query the name of a group
DATA:GROUp:RENameChange a group name
DATA:MSIZe(?)Set the pattern data memory size
2Ć11
Command Groups
Table 2Ć4: DATA commands (Cont.)
HeaderDescription
DATA:PATTern:BIT(?)Set individual pattern data bits
DATA:PATTern[:WORD](?)Set pattern data in word units
DATA:SEQuence:ADDAdd a sequence step
DATA:SEQuence:DEFine(?)Set the sequence definitions
DATA:SEQuence:DELeteDelete a sequence step
DATA:SEQuence:DELete:ALLDelete all sequence definitions
DATA:SEQuence:EVJ(?)Set the event jump on/off state
DATA:SEQuence:EVJTO(?)Set the event jump destination
DATA:SEQuence:LOOP(?)Set the infinite loop on/off state
DATA:SEQuence:REPeat(?)Set the repeat count
DATA:SEQuence:TWAIT(?)Set the trigger wait on/off state
DATA:UPDateForcibly update the pattern and other data
The DIAGNOSTIC commands select and execute the self–test routines, which
are classified by function.
Table 2Ć5: DIAGNOSTIC commands
HeaderDescription
DIAGnostic?Query all current settings related to self test
DIAGnostic:RESUlt?Query selfĆtest result
DIAGnostic:SELect(?)Select selfĆtest routine
DIAGnostic:STATePerform self test
2Ć12
*TST?Perform self test
DG2020A Programmer Manual
Command Groups
DISPLAY Commands
The DISPLAY commands execute functions associated with front panel keys,
buttons, and knobs, adjust the screen brightness, and perform other display
related functions.
Table 2Ć6: DISPLAY commands
HeaderDescription
ABSTouchPerform the function corresponding to the
front-panel control selected
DISPlay?Query settings made with display group commands
DISPlay:BRIGhtness(?)Set brightness of screen
DISPlay:CLOCk(?)Set the date and time display state
DISPlay:DIMmer(?)Set the state of the display dimmer function
DISPlay:ENABle(?)Set the display on/off state
DISPlay:MENU?Query all menu display related information
DISPlay:MENU[:NAME]Set the menu selection state
DISPlay:MENU:NAME?Query the menu selection state
DISPlay:MENU:STATe(?)Set the menu display on/off state
DISPlay[:WINDow]:TEXT:CLEarErase the message display area
HARDCOPY Commands
DISPlay[:WINDow]:
TEXT[:DATA](?)
Set the contents of the message display area
The HARDCOPY commands start and stop for hardcopy operation, and select
port and its outputting format.
Table 2Ć7: HARDCOPY commands
HeaderDescription
HCOPy?Query all hardcopy related information
HCOPy:ABORtStop the current hardcopy operation
HCOPy:DATA?Create and send hardcopy data
HCOPy:FORMat(?)Select output format of hardcopy
HCOPy:PORT(?)Select output port of hardcopy
HCOPy:STARtStart a hardcopy operation
DG2020A Programmer Manual
2Ć13
Command Groups
MEMORY Commands
The MEMORY commands control all floppy disk and file operations.
Table 2Ć8: MEMORY commands
HeaderDescription
MMEMory:CATalog[:ALL]?Query disk file and directory information
MMEMory:CATalog:ORDer(?)Set the display order for disk file and directory
information
MMEMory:CDIRectory(?)Set the current working directory
MMEMory:COPYCopy a disk file
MMEMory:DELete:ALLDelete all files and directories on a disk
MMEMory:DELete[:NAME]Delete the specified file or directory on a disk
MMEMory:FREE?Query disk memory usage
MMEMory:INITializeFormat a disk
MMEMory:LOADRead data from a disk file
MMEMory:LOCK(?)Set the disk file lock state
MMEMory:MDIRectoryCreate a new directory on the disk
MMEMory:RDIRectoryRemove a directory on the disk
MODE Commands
MMEMory:RENameChange the name of a disk file or directory
MMEMory:SAVEWrite data to a disk file
The MODE commands are used to set the run and update modes, to start or stop
pattern data or sequence output, and to set the trigger conditions for the external
trigger source.
Table 2Ć9: MODE commands
HeaderDescription
MODE?Query the states related to pattern generation
MODE:STATe(?)Set the run mode for pattern generation
MODE:UPDate(?)Set the data update mode
RUNNing?Query whether the instrument is currently outputting
a pattern or sequence
STARtStart pattern or sequence output
STOPStop pattern or sequence output
*TRGGenerate the triggering event
TRIGger?Query all current triggerĆrelated settings
2Ć14
DG2020A Programmer Manual
Command Groups
Table 2Ć9: MODE commands (Cont.)
HeaderDescription
TRIGger:IMPedance(?)Select the impedance presented to the the external
trigger signal
TRIGger:LEVel(?)Set the level of the external trigger signal that
generates the triggering event
TRIGger:SLOPe(?)Select the slope of the external signal that
generates a triggering event
OUTPUT Commands
The OUTPUT commands set all the pod–related settings. The <s> and <n> terms
in the header mnemonic are used to specify the pod and channel in these
commands.
Table 2Ć10: OUTPUT commands
HeaderDescription
OUTPut?Query the settings related to the output channels
and clock
OUTPut:ELEVel(?)Set the event input level
OUTPut:ILEVel(?)Set the inhibit input level
OUTPut:POD<s>:CH<n>:ASSIGn(?)Set the pod data bit assignments
OUTPut:POD<s>:CH<n>:DELAy(?)Set the pod delay times
OUTPut:POD<s>:CH<n>:HIGH(?)Set the pod high-level output voltage
OUTPut:POD<s>:CH<n>:INHibit(?)Set the pod high-impedance control method
OUTPut:POD<s>:CH<n>:LOW(?)Set the pod low-level output voltage
OUTPut:POD<s>:CH<n>:RELEaseClear the pod data bit assignments
OUTPut:POD<s>:DEFine(?)Set pod data bit assignments
OUTPut:POD<s>:TYPE?Query the pod type
DG2020A Programmer Manual
2Ć15
Command Groups
SOURCE Commands
STATUS & EVENT
Commands
The SOURCE commands are used to select the clock signal source, set the clock
frequency, and enable or disable the event input of the pod.
Table 2Ć11: SOURCE commands
HeaderDescription
SOURce[:OSCillator]?Query all clock signal settings
SOURce:OSCillator:EXTernal:
FREQuency(?)
SOURce:OSCillator[:INTernal]:
FREQuency(?)
SOURce:OSCillator[:INTernal]:
PLLlock(?)
SOURce:OSCillator:SOURce(?)Set the clock signal internal/external selection
SOURce:POD<s>:EVENT:ENABle(?)Enable or disable the event input of the pod
Input the external clock frequency
Set the internal clock frequency
Set the internal clock oscillator circuit PLL operating
state
The STATUS & EVENT commands are used to set and query the registers and
queues used by the status and event reporting system, to investigate the state of
the instrument, and to control event generation. See section 3 for details on the
status and event reporting system.
Table 2Ć12: STATUS & EVENT commands
HeaderDescription
ALLEv?Dequeue all events from Event Queue
*CLSClear SESR, SBR and Event Queue
DESE(?)Set and query DESER
*ESE(?)Set and query ESER
*ESR?Query SESR
EVENT?Dequeue event from Event Queue
EVMsg?Dequeue event from Event Queue
EVQty?Query number of event on Event Queue
*PSC(?)Set powerĆon status clear flag
*SRE(?)Set and query SRER
*STB?Query SBR
2Ć16
DG2020A Programmer Manual
Command Groups
SYNCHRONIZATION
Commands
SYSTEM Commands
The SYNCHRONIZATION commands monitor for the completion of all
pending operations.
Table 2Ć13: SYNCHRONIZATION commands
HeaderDescription
*OPC(?)Generate or return the operation complete message
*WAIHold off all commands until all pending operations
complete
The SYSTEM commands are used (for example) to set the date and time, to lock
out front panel control, to control the handling of headers in responses, and to
query for ID and setting information. This group is a collection of commands
that cannot be classified in any other group.
Table 2Ć14: SYSTEM commands
HeaderDescription
DEBug?Query all settings for debugging
DEBug:SNOop?Query all settings for debugging
DEBug:SNOop:DELAy?Query delay time for debugging
DEBug:SNOop:DELAy:TIME(?)Set delay time for debugging
DEBug:SNOop:STATe(?)Turn on or off for debugging
FACToryReset all settings to defaults
HEADer(?)Allow or suppress the return of the control header in
response messages
ID?Query ID information about the data generator
*IDN?Query ID information about the data generator
LOCk(?)Lock or unlock local control using the frontĆpanel
controls
*OPT?Query which options are implemented for this data
generator
*RSTReset this data generator
SYSTem:DATE(?)Set the clock date
SYSTem:PPAUse(?)Set the setting for system operation when a
self-diagnostics detects an error
SYSTem:SECurity:IMMediateDelete all settings and data
SYSTem:SECurity:STATe(?)Set the security on/off state
SYSTem:TIME(?)Set the clock time
DG2020A Programmer Manual
2Ć17
Command Groups
Table 2Ć14: SYSTEM commands (Cont.)
HeaderDescription
UNLockUnlock (allow) local control using the frontĆpanel
controls
UPTime?Query the elapsed time since power on
VERBose(?)Select short or long response headers
2Ć18
DG2020A Programmer Manual
Command Descriptions
This subsection lists each command and query in the command set alphabetically. Each command entry includes its command description and command group,
its related commands (if any), its syntax, and its 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 DISPlay:BRIGhtness command, just type DISP:BRIG.
The symbol ’(?)’ follows the command header of those commands that can be
used as either a command or a query. The symbol ’?’ follows those commands
that can only be a query. If neither symbol follows the command, it can only be
used as a command.
ABSTouch
The ABSTouch command performs the same action that actuating the corresponding front-panel key, button, or knob would do.
Group
Related Commands
Syntax
Arguments
DISPLAY
ABSTouch {BOTTOM1 | BOTTOM2 | BOTTOM3 | BOTTOM4 | BOTTOM5 |
BOTTOM6 | BOTTOM7 | SIDE1 | SIDE2 | SIDE3 | SIDE4 | SIDE5 |
CLEARMenu | SETUp | EDIT | APPLication | UTILity | CURSor |
EXECute | UParrow | DOWNarrow | LEFTarrow | RIGHtarrow | KNOBLeft
| KNOBRight | RUN | STEp | ZERo | ONE | TWO | THREe | FOUR | FIVe
| SIX | SEVen | EIGHt | NINe | POINt|A|MINUs|B|HZ|S|V
|C|KHZ|MS|MV|D|MHZ|US|E|NS|F|DELete | ENTer
| HARDcopy | MANual}
Sending any of the arguments that are shown in Figure 2-2 is the equivalent of
operating a front panel control. Which argument corresponds to which control is
shown by in Figure 2-2. Sending an argument corresponding to a front-panel
button is the same as pressing that button once; if the argument sent corresponds
to a knob, it is the same as rotating the knob clockwise or counterclockwise by
1
@
of a turn.
25
DG2020A Programmer Manual
2Ć19
Command Descriptions
UParrow
EXECute
RIGHtarrow
KNOBLeft
KNOBRight
HARDcopy
MANual
DG2020A
DATAGENERATOR
SIDE 1
SIDE 2
SIDE 3
SIDE 4
CURSor
LEFTarrow
RUN
STEp
SETUp
EDIT
APPLication
UTILity
DOWNarrow
SIDE 5
ON/
STBY
CLEAR
MENU
BOTTOM 1 BOTTOM 7
CLEARMenu
SEVenąEIGHtąNINe
9
87
6
5
4
FOURąăFIVeăąSIX
23
1
ONEăTWOăTHREe
.
ZERo
0
-
A
F
NS
MHZ/US
E
ns
F
D
MHz/ms
kHz/ms/mV
B
CAB
E
D
C
KHZ/MS/MV
DELete
ENTERHz/s/V
ENTer
Figure 2Ć2: ABSTouch arguments and associated controls
Examples
ABSTOUCH SETUP
displays the same setup menu that is displayed by pressing the front-panel button
SETUP in the MENU column on the front panel.
ALLEv?
The ALLEv? query dequeues all event codes and their corresponding event
messages. Use the *ESR? query to make events available for dequeuing using
ALLEv? query.
The *CLS common command clears SESR (Standard Event Status Register), the
SBR (Status Byte Register) and the Event Queue, which are used in the data
generator status and event reporting system. For more details, refer to Section 3
Status and Events.
<Position>::=<NR1>
where <NR1> is the start position of the added block.
<Name>::=<string>
where <string> is the name of the added block.
:DATA:BLOCK:ADD 512,"BLOCK1"
adds a block starting at address 512 named BLOCK1.
2Ć22
DG2020A Programmer Manual
DATA:BLOCk:DEFine (?)
The DATA:BLOCk:DEFine command sets up the information for the whole block
definition section in ASCII. The DATA:BLOCk:DEFine? query returns the whole
block definition section.
<Name>::=<string>
where <string> is the name of the block to be deleted.
:DATA:BLOCK:DELETE "BLOCK2"
deletes the block with the name BLOCK2.
DATA:BLOCk:DELete:ALL
The DATA:BLOCk:DELete:ALL command deletes all blocks. After this command
is executed, the whole memory area consists of one block with the name ”NO
NAME”.
where the name of the group to be changed or queried.
<MSB>::=<NR1>
where <NR1>is the high order bit for the group.
<LSB>::=<NR1>
where <NR1>is the low order bit for the group.
[:DATA:GROUP:BIT] <Name>,<MSB>,<LSB>
:DATA:GROUP:BIT "GROUP02",7,4
changes the bit configuration for the group named GROUP02 to be DATA04 to
DATA07.
DG2020A Programmer Manual
2Ć27
Command Descriptions
DATA:GROUp:DEFine (?)
The DATA:GROUp:DEFine command sets up the information for the whole group
definition section in ASCII. The DATA:GROUp:DEFine? query returns the
information for the whole group definition section.
<From-groupname>::=<string>
where <string> is the name of the group before it is renamed.
<To-groupname>::=<string>
where <string> is the name of the group after it is renamed.
:DATA:GROUP:RENAME "GROUP03","GROUP04"
changes the name of the group GROUP03 to be GROUP04.
2Ć30
DG2020A Programmer Manual
DATA:MSIZe (?)
Command Descriptions
The DATA:MSIZe command sets the bit pattern section memory area size. TheDATA:MSIZe? query returns the bit pattern section memory area setting.
Group
Related Commands
Syntax
Arguments
Responses
DATA:PATTern:BIT (?)
DATA
DATA:MSIZe <Memory Size>
DATA:MSIZe?
<Memory Size>::=<NR1>
where <NR1> is the number that expresses the memory size (in words).
[:DATA:MSIZE] <Memory Size>
The DATA:PATTern:BIT command sets the data memory bit pattern section. Data
is given in bit units. The DATA:PATTern:BIT? query returns the contents of the
data memory bit pattern section.
<Bit Position>::=<NR1>bit position (0 to 35)
<Address>::=<NR1>start address (0 to 65535)
<Length>::=<NR1>data length (1 to 65536)
<Data>::=<block>arbitrary block data for the bit pattern section
Example where the data length is 128:
#3128<bit 1> <bit 2> ... <bit 128>
Number of digits
<bit N> ::= {1 | 0}
Number of bits
The value of the data bit at the specified address is specified with the ASCII
character for 0 or 1. Data bits for the specified data length are stored in
address order, with all bits expressed similarly in ASCII. The number of
bytes in the block header will be equal to the length of the specified data.
The DATA:PATTern[:WORD] command sets the data memory bit pattern section.
The data is given in word units. The DATA:PATTern:WORD? query returns the
contents of the data memory bit pattern section.
adds a sequence step that consists of the block named BLOCK3 at the sequence
line number 4 position.
When this sequence is executed in enhanced mode, BLOCK3 will be executed
repeatedly since the infinite loop setting is set on. However, since event jump is
also set on, the instrument will jump to sequence line number 0 if an external
event occurs. In run modes other than enhanced mode, BLOCK3 will be
executed 16 times and then control will switch to the next line number.
2Ć34
DG2020A Programmer Manual
DATA:SEQuence:DEFine (?)
The DATA:SEQuence:DEFine command sets up all of the sequence definition
section information in ASCII. The DATA:SEQuence:DEFine? query returns all of
the sequence definition section information.
where <Sequence Block> is a data block with the same format as the argument.
However, note that rather than the ON and OFF keywords, only 0 and 1 are used
for the <AWaitE>, <AJumpE>, and <ALoopE> items.
:DATA:SEQuence:DEFine #235BLOCK1,16,0,1,0,0<LF>BLOCK2,32,0,0,1,1
defines a two step sequence that consists of the two blocks BLOCK1 and
BLOCK2.
2Ć35
Command Descriptions
DATA:SEQuence:DELete
The DATA:SEQuence:DELete command deletes the specified sequence step.
The DATA:SEQuence:EVJ command sets the sequence step event jump to on or
off. The DATA:SEQuence:EVJ? query returns the sequence step event jump
on/off state.
<Line Number>::=<NR1>
where <NR1> is the line number of the sequence step to be set.
ON or 1
sets the event jump to on.
OFF or 0
sets the event jump to off.
[:DATA:SEQUENCE:EVJ] <Line Number>,{1 | 0}
:DATA:SEQUENCE:EVJ 8,ON
sets the event jump state for the line 8 sequence step to on.
DG2020A Programmer Manual
2Ć37
Command Descriptions
DATA:SEQuence:EVJTO (?)
The DATA:SEQuence:EVJTO command sets the sequence step event jump
destination. The DATA:SEQuence:EVJTO? query returns the event jump
destination set for the sequence step.
<Line Number>::=<NR1>
where <NR1> is the line number of the sequence step to be set.
<Target>::=<NR1>
where <NR1> is the line number of the jump destination sequence step.
[:DATA:SEQUENCE:EVJTO] <Line Number>,<Target>
:DATA:SEQUENCE:EVJTO 5,0
sets the line 5 sequence step event jump destination to line 0.
2Ć38
DG2020A Programmer Manual
DATA:SEQuence:LOOP (?)
The DATA:SEQuence:LOOP command sets the sequence step infinite loop state to
on or off. The DATA:SEQuence:LOOP? query returns the sequence step infinite
loop on/off state.
<Line Number>::=<NR1>
where <NR1> is the line number of the sequence step to be set.
<Times>::=<NR1>
where <NR1> is a repeat count (1 to 65536).
[:DATA:SEQUENCE:REPEAT] <Line Number>,<Times>
:DATA:SEQUENCE:REPEAT 5,8
sets the line 5 sequence step repeat count to 8.
DATA:SEQuence:TWAIT (?)
The DATA:SEQuence:TWAIT command sets the sequence step trigger wait state to
on or off. The DATA:SEQuence:TWAIT? query returns the sequence step trigger
wait on/off state.
The DATA:SUBSequence:DEFine command sets up all of the sub sequence
definition section information in ASCII. The DATA:SUBSquence:DEFine? query
returns all of the sub sequence definition section information.
where <String> is a sub sequence name (surrounded in double (”) or single (’)
quotes).
2Ć43
Command Descriptions
Examples
:DATA:SUBSEQUENCE:DELETE:ALL "SUB1"
deletes the sub sequence definition named SUB1.
DATA:SUBSequence:REPeat (?)
The DATA:SUBSequence:REPeat command sets the sub sequence step repeat
count. The DATA:SUBSequence:REPeat? query returns the repeat count set for
the sub sequence step.
sets the line 5 sequence step repeat count in the sub sequence named SUB1 to 8.
2Ć44
DG2020A Programmer Manual
DATA:UPDate
Command Descriptions
The DATA:UPDate command transfers the contents of data memory to pattern
generation memory so that the output reflects the most recent data. This
command is only valid when the mode is set to manual mode. The processing
performed by this command is executed automatically if any data changes when
the instrument is in automatic mode.
Related Commands
DEBug?
Related Commands
Group
Syntax
Arguments
Group
DATA
DATA:UPDate
None
The DEBug? query returns all current settings for the remote command debugging
function.
This query is equivalent to the DEBug:SNOop? query.
where <NR2> combined with [<unit>] specifies a time in the range 0.0 s to
10.0 s in steps of 0.1 s, and [<unit>]::={s|ms|ms}, for seconds, milliseconds,
or microseconds.
:DEBUG:SNOOP:DELAY:TIME 0.5
sets the command display time to 0.5 seconds.
2Ć48
DG2020A Programmer Manual
DEBug:SNOop:STATe (?)
The DEBug:SNOop:STATe command sets and clears the remote command
debugging function.
The DEBug:SNOop:STATe? query returns the currently specified state of the
remote command debugging function.
The debugging function displays messages input from the remote interface in the
CRT screen message area. If commands are connected by semicolons, each
message is displayed for the time specified with the DEBug:SNOop:DELAy:TIME
command.
The display format is as follows.
Control codes — "<code decimal display>", e.g. LF is displayed as
"<10>".
Alphanumerics and symbols — "<code ASCII display>", e.g., "A" is
displayed as "A".
Command Descriptions
Group
Related Commands
Syntax
Arguments
Message termination — "<PMT>"
Interface messages — "<DCL>" and "<GET>". Others are displayed as
"<code decimal display>".
Block data — "#0"
Any data other than one of the above — "<code decimal display>",
e.g. a code value of 80 (hexadecimal) would be displayed as <128>.
DEBug:SNOop:STATe {ON | OFF | <NR1>}
DEBug:SNOop:STATe?
ON or nonzero value
enables the debugging function.
OFF or zero value
clears the debugging function.
DG2020A Programmer Manual
2Ć49
Command Descriptions
DESE (?)
Related Commands
Responses
Examples
Group
1the debugging function is currently set.
0the debugging function is currently cleared.
:DEBUG:SNOOP:STATE ON
enables the debugging function.
The DESE command sets the bits of the DESER (Device Event Status Enable
Register) used in the status and event reporting system of the data generator. The
DESE? query returns the contents of the DESER. Refer to Section 3 Status and
Events for more information about DESE.
The power-on default for the DESER is to set all bits to 1 if the power-on status
flag is TRUE. If this flag is set to FALSE, the DESER maintains its current
value through a power cycle.
[:DIAGNOSTIC:SELECT] <Self-test Routine>; [RESULT],<Result>[,
<Result>]...
<SelfĆtest Routine>::= <label>
where <label>
ALLall routines
CPUCPU unit check routine
DISPlaydisplay unit check routine
FPANelfront panel control unit check routine
CLOCkclock unit check routine
TRIGgertrigger unit test routine
PMEMorypattern memory check routine
SMEMorysequence memory check routine
is one of following routines:
DG2020A Programmer Manual
and where <Result>::=<NR1> is one of following responses:
ăă0terminated without error
100detected an error in the CPU unit
200detected an error in the display unit
300detected an error in the front panel unit
400detected an error in the clock unit
500detected an error in the trigger unit
600detected an error in the sequence memory
700detected an error in the pattern memory
NOTE. The does not respond to any commands or queries issued during Self
Test.
ăă0terminated without error
100detected an error in the CPU unit
200detected an error in the display unit
300detected an error in the front panel unit
400detected an error in the clock unit
500detected an error in the trigger unit
600detected an error in the sequence memory
700detected an error in the pattern memory
The DIAGnostic:SELect command selects the self test routine. The DIAGnosĆ
tic:SELect? query returns the currently selected routine. The DIAGnosĆ
tic:STATe command executes the routine.
Group
Related Commands
Syntax
Arguments
Examples
DIAGNOSTIC
DIAGnostic:STATe, DIAGnostic:RESULt?
DIAGnostic:SELect { ALL | CPU | DISPlay | FPANel | CLOCk |
TRIGger | SMEMory | PMEMory }
DIAGnostic:SELect?
ALLchecks all routines that follow
CPUchecks the CPU unit
DISPlaychecks the display unit
FPANelchecks the front panel control unit
CLOCkchecks the clock unit
TRIGgerchecks the trigger unit
SMEMorychecks the sequence memory
PMEMorychecks the pattern memory
:DIAGNOSTIC:SELECT CPU ; STATE EXECUTE
executes the CPU self-test routine.
DIAGnostic:STATe
Group
Related Commands
Syntax
DG2020A Programmer Manual
The DIAGnostic:STATe command executes the self-test routine(s) selected with
the DIAGnostic:SELect command. If an error is detected during execution, the
routine that detected the error terminates. If all of the self-test routines are
selected using the DIAGnostic:SELect command, self-testing continues with
execution of the next self-test routine.
DIAGNOSTIC
DIAGnostic:SELect, DIAGnostic:RESUlt?
DIAGnostic:STATe EXECute
2Ć53
Command Descriptions
DISPlay?
Related Commands
Arguments
Examples
Group
Syntax
Arguments
EXECute
Performs the self-test using the selected routine.
:DIAGNOSTIC:SELECT ALL ; STATE EXECUTE ; RESULT?
executes all of the self-test routines. After all self-test routines finish, the results
of the self tests are returned.
The DISPlay? query returns all the settings set using the display commands.
DISPLAY
None
DISPlay?
None
Responses
Examples
Returns the settings as a sequence of commands, suitable for sending as set
commands later to restore a setup. See Examples.
The DISPlay:BRIGhtness command adjusts the brightness of the screen; theDISPlay:BRIGhtness? query returns the current brightness setting.
Group
Related Commands
Syntax
Arguments
Examples
DISPlay:CLOCk (?)
DISPLAY
DISPlay?
DISPlay:BRIGhtness <Value>
DISPlay:BRIGhtness?
<Value>::=<NRf>
where <NRf> is a real number ranging from 0 to 1.
:DISPLAY:BRIGHTNESS 0.7
sets screen brightness to 70% of maximum intensity.
The DISPlay:CLOCk command sets whether or not the data and time are
displayed.
The DISPlay:CLOCk? query returns whether or not the data and time are
displayed.
Group
Related Commands
Syntax
Arguments
DG2020A Programmer Manual
DISPLAY
DISPlay?
DISPlay:CLOCk {ON | OFF|1|0}
DISPlay:CLOCk?
ON or 1
sets the data generator to display the date and time.
OFF or 0
sets the data generator to not display the date and time.
2Ć55
Command Descriptions
Responses
Examples
DISPlay:DIMmer (?)
Group
Related Commands
Syntax
1Date and time is currently displayed.
0Date and time is currently not displayed.
:DISPLAY:CLOCK ON
sets the data generator to display the date and time.
The DISPlay:DIMmer command sets whether or not the screen dimmer function
operates. The DISPlay:DIMmer? query returns the on/off state of the screen
dimmer function. When the dimmer function is on, if no front panel controls are
used for about 10 minutes, the screen brightness is lowered automatically.
DISPLAY
DISPlay?
DISPlay:DIMmer {ON | OFF|1|0}
DISPlay:DIMmer?
Arguments
Responses
Examples
ON or 1
enables the dimmer function.
OFF or 0
clears the dimmer function.
[:DISPLAY:DIMMER] {1 | 0}
:DISPLAY:DIMMER ON
turns the dimmer function on.
2Ć56
DG2020A Programmer Manual
DISPlay:ENABle (?)
Command Descriptions
The DISPlay:ENABle command turns the display on or off. When security is
turned on, once the display is set to off, it cannot be turned on again. The
DISPlay:ENABle? query returns the on/off state of the display.
Group
Related Commands
Syntax
Arguments
Responses
Examples
DISPLAY
DISPlay?, DISPlay:MENU:STATe
DISPlay:ENABle {ON | OFF|1|0}
DISPlay:ENABle?
ON or 1
turns the display on.
OFF or 0
turns the display off.
[:DISPLAY:ENABLE] {1 | 0}
:DISPLAY:ENABLE OFF
turns the display off.
DISPlay:MENU?
Group
Related Commands
Syntax
Arguments
Responses
DG2020A Programmer Manual
The DISPlay:MENU? query returns the type and display state of the selected
menu.
The DISPlay:MENU:STATe command sets whether or not menus are displayed on
the screen. The DISPlay:MENU:STATE? query returns whether or not menus are
displayed on the screen. This command is equivalent to the DISPlay:ENABle
command.
DISPlay:MENU:STATe {ON | OFF | 1 | 0}
DISPlay:MENU:STATe?
ON or 1Menus are displayed.
OFF or 0Menus are not displayed.
[:DISPLAY:MENU:STATE] {1 | 0}
DISPLAY:MENU:STATE ON
sets the instrument to display menus on the screen.
2Ć59
Command Descriptions
DISPlay[:WINDow]:TEXT:CLEar
The DISPlay[:WINDow]:TEXT:CLEar command clears the message display area
on the screen.
Group
Related Commands
Syntax
Arguments
Examples
DISPLAY
DISPlay?, DISPlay[:WINDow]:TEXT[:DATA]
DISPlay[:WINDow]:TEXT:CLEar
None
:DISPLAY:WINDOW:TEXT:CLEAR
clears the message display area.
2Ć60
DG2020A Programmer Manual
DISPlay[:WINDow]:TEXT[:DATA] (?)
The DISPlay[:WINDow]:TEXT[:DATA] command sends a message to be
displayed in the screen message display area. The sent message is displayed
immediately. The DISPlay[:WINDow]:TEXT[:DATA]? query returns the contents
of the input screen message.
NOTE. The contents of the message display area scrolls automatically. To fully
update the display contents, first clear the message display area using the
DISPlay[:WINDow]:TEXT:CLEar command.
<Message>::=<string>
where <string> is a message character string.
[:DISPLAY:WINDOW:TEXT:DATA] <Message>
:DISPLAY:WINDOW:TEXT:DATA "ABCD"
sends the text ”ABCD” to be displayed in the message display area.
The *ESE common command sets the bits of the ESER (Event Status Enable
Register) used in the status and events reporting system of the data generator.
The *ESE? query returns the contents of the ESER. Refer to Section 3 Status andEvents for more information about the ESER.
Group
DG2020A Programmer Manual
If the power on status flag is TRUE, the power-on default for the ESER is to
reset all bits to zero. If this flag is set to FALSE, the ESER bits do not change
value during the power-on cycle.
where <NR1> is a decimal integer that ranges from 0 to 255. The ESER bits will
be set to the binary equivalent of the decimal integer sent.
*ESE 177
sets the ESER to 177 (binary 10110001), which sets the PON, CME, EXE and
OPC bits.
*ESE?
might return 176,which indicates that the ESER contains the binary number
11010000.
The *ESR? common query returns the contents of SESR (Standard Event Status
Register) used in the status and events reporting system. Refer to Section 3
Status and Events for more information about *ESR? or SESR.
might return 181, which indicates that the SESR contains the binary number
10110101.
2Ć62
DG2020A Programmer Manual
EVENT?
Command Descriptions
The EVENT? query dequeues the event code of the event that has been in the
Event Queue the longest out of all available events. Use the *ESR? query to
make the events available for dequeuing using EVENT?. Refer to Section 3 Status
The EVMsg? query dequeues the event code and event message of the event that
has been in the Event Queue the longest out of all available events. Use the
*ESR? query to make the events available for dequeuing using EVMsg? For more
details, refer to Section 3 Status and Events.
The FACTory command resets the data generator to its factory default settings
and purges all stored settings. (See Appendix D, page D–1, for a list of the
factory settings.)
SYSTEM
2Ć64
Related Commands
Syntax
Arguments
Examples
*RST, SECUre
FACTory
None
:FACTORY
resets the data generator to its factory default settings.
DG2020A Programmer Manual
HCOPy?
Command Descriptions
The HCOPy? query returns the set image data format and output port for hardcopy
output.
the format used by 9-pin and 24-pin dot matrix printers in ESC/P graphics mode.
EPSMono
the encapsulated Postscript format monochrome image file format.
Examples
DG2020A Programmer Manual
THINkjet
the format used by HP inkjet printers.
TIFF
the TIFF format.
HCOPY?
might return :HCOPY:FORMAT TIFF ; PORT DISK
In this case the instrument outputs hardcopy data to file on the floppy disk in the
TIFF format.
2Ć65
Command Descriptions
HCOPy:ABORt
The HCOPy:ABORt command aborts hardcopy output.
Related Commands
Arguments
Examples
HCOPy:DATA?
Group
Syntax
Group
HARDCOPY
HCOPy:STARt
HCOPy:ABORt
None
:HCOPY:ABORT
aborts hardcopy output.
The HCOPy:DATA? query outputs the hard copy data to the output queue.
However, note that this command has no effect on (and is not affected by) the
hard copy output port setting.
HARDCOPY
2Ć66
Related Commands
Syntax
Arguments
Responses
Examples
HCOPy:PORT
HCOPy:DATA?
None
[:HCOPY:DATA] <Image>
where
<Image>::=<block>the hardcopy image data block
:HCOPY:DATA?
outputs hard copy data to the output queue.
DG2020A Programmer Manual
HCOPy:FORMat (?)
Command Descriptions
The HCOPy:FORMat command sets the hard copy output format.
The HCOPy:FORMat? query returns the currently specified hard copy output
sets the data generator to output hard copy in the TIFF format.
2Ć67
Command Descriptions
HCOPy:PORT (?)
The HCOPy:PORT command sets the hard copy output port.
The HCOPy:PORT? query returns the currently specified hard copy output port.
Group
Related Commands
Syntax
Arguments
Responses
Examples
HARDCOPY
HCOPy?
HCOPy:PORT {DISK | GPIB | RS232c}
HCOPy:PORT?
DISK
outputs to a file on the floppy disk.
GPIB
outputs to the GPIB port.
RS232c
outputs to the RS-232C port.
[HCOPy:PORT] {DISK | GPIB | RS232c}
:HCOPY:PORT DISK
sets the hard copy output to be to a file on the floppy disk.
2Ć68
DG2020A Programmer Manual
HCOPy:STARt
Command Descriptions
The HCOPy:STARt command starts hardcopy output.
Related Commands
HEADer (?)
Group
Syntax
Arguments
Examples
Group
HARDCOPY
HCOPy:ABORt
HCOPy:STARt
None
:HCOPY:START
starts hardcopy output.
The HEADer command enables or disables the command header responses to all
queries except IEEE Std 488.2 common commands. The HEADer? query returns
the status indicating whether the command header responses are enabled or not.
SYSTEM
Related Commands
Syntax
Arguments
Responses
DG2020A Programmer Manual
VERBose
HEADer {ON | OFF | <NR1>}
HEADer?
ON or nonzero value
enables the command header responses.
OFF or zero value
disables the command header responses.
1command header responses are currently enabled.
0command header responses are currently disabled.
2Ć69
Command Descriptions
ID?
Examples
Group
Related Commands
Syntax
Arguments
:HEADER OFF
disables the command header responses.
:HEADER?
might return 1 which indicates command headers are currently enabled for
return in query responses.
The ID? query returns the ID information of the data generator.
SYSTEM
*IDN?
ID?
None
Responses
Examples
ID <Manufacturer>/<Model>, <Firmware Level>
where
<Manufacturer>::=SONY_TEK,
<Model>::=DG2020A
<Firmware Level>::=CF:<Code and Format Version>, and
FV:<Firmware Version>.
:ID?
returns SONY_TEK/DG2020A,CF:91.1CN,FV:1.00
2Ć70
DG2020A Programmer Manual
*IDN?
Command Descriptions
The *IDN? common query returns the ID information of the data generator.
<Manufacturer>::=SONY/TEK,
<Model>::=DG2020A,
<Serial Number>::=0,
<Firmware Level>::=CF:<Code and Format Version>,
<sp>FV:<Firmware Version>, and
<sp>::= Space.
The LOCk command enables or disables the knob and all front panel buttons
except the ON/STBY button.
The LOCk? query returns a status indicating whether the knob and the buttons are
locked or not.
These data generators do not switch between remote control and local control
modes, but rather allow simultaneous setting from an external controller and
from the front panel. Use this command to lock the functions of the front panel
buttons and knobs to disable front panel operations during operation from an
external controller or during external controller software execution.
2Ć71
Command Descriptions
NOTE. When the front panel control operations are locked out by the LOCk
command, the instrument displays the character string ”FP: LOCKED” at the
upper right of the screen.
Group
Related Commands
Syntax
Arguments
Examples
SYSTEM
UNLock
LOCk {ALL | NONe}
LOCk?
ALL
disables the front panel buttons and the knob except the ON/STBY button.
NONe
enables the front panel buttons and the knob.
:LOCk ALL
disables the front panel buttons and the knob.
2Ć72
DG2020A Programmer Manual
MMEMory:CATalog[:ALL]?
The MMEMory:CATalog[:ALL]? query returns a list of all files and directories in
the current directory on the floppy disk.
NOTE. A file size of 0 is returned for subdirectories.
MMEMory:CATalog:ORDer (?)
The MMEMory:CATalog:ORDer command sets the display order for file information in disk directory listings. The MMEMory:CATalog:ORDer? query returns the
display order for file information in disk directory listings.
<Directory Path>::=<string>
where <string> is the name of the new current working directory.
[:MMEMORY:CDIRECTORY] <Directory Path>
:MMEMORY:CDIRECTORY "\DG\WORK3"
changes the current working directory to \DG\WORK3.
DG2020A Programmer Manual
MMEMory:COPY
Command Descriptions
The MMEMory:COPY command copies a file on the disk and creates a new file. If
the copy destination file already exists, an error is issued and the existing file is
not overwritten.
Group
Related Commands
Syntax
Arguments
Examples
MMEMory:DELete:ALL
MEMORY
MMEMory:DELete:ALL, MMEMory:DELete[:NAME]
MMEMory:COPY <From-path>,<To-path>
<From-path>::=<string>
where <string> is the path name of the source file.
<To-path>::=<string>
where <string> is the path name of the destination file.
:MMEMORY:COPY "MYDATA.PDA","MYWORK.PDA"
copies the file MYDATA.PDA in the current directory and creates a new file,
MYWORK.PDA, in the current directory.
The MMEMory:DELete:ALL command deletes all files and subdirectories in the
current directory. However, non–empty subdirectories are not deleted.
Group
Related Commands
Syntax
Arguments
Examples
DG2020A Programmer Manual
MEMORY
MMEMory:DELete[:NAME]
MMEMory:DELete:ALL
None
:MMEMORY:DELETE:ALL
deletes all files and empty subdirectories in the current directory.
2Ć75
Command Descriptions
MMEMory:DELete[:NAME]
The MMEMory:DELete[:NAME] command deletes the file or subdirectory with the
specified path name. However, non–empty subdirectories are not deleted.
Group
Related Commands
Syntax
Arguments
Examples
MMEMory:FREE?
Group
MEMORY
MMEMory:DELete:ALL
MMEMory:DELete[:NAME] <Path Name>
<Path Name>::=<string>
where <string> is the path name of the file or subdirectory to be deleted.
:MMEMORY:DELETE "NOMORE.PDA"
deletes the file NOMORE.PDA in the current directory.
The MMEMory:FREE? query returns used size and unused size of the mass
memory. This query is equivalent to the MMEMory:FREE:ALL? query.
MEMORY
2Ć76
Related Commands
Syntax
Arguments
Responses
Examples
MMEMory:FREE?
None
:MMEMORY:FREE <Used Size>, <Unused Size>
where
<Used Size>::=<NR1> and
<Unused Size>::=<NR1>.
:MMEMORY:FREE?
might return :MMEMORY:FREE 104584,1352704
DG2020A Programmer Manual
MMEMory:INITialize
Command Descriptions
The MMEMory:INITialize command formats a floppy disk. The format type is
specified by the argument.
The MMEMory:LOAD command loads in pattern data and block, group, sequence,
and setup information in DG2020A format into the instrument’s internal memory
from a disk file.
MEMORY
MMEMory:SAVE
2Ć77
Command Descriptions
Syntax
Arguments
Examples
MMEMory:LOCK (?)
Group
Related Commands
MMEMory:LOAD <File Name>
<File Name>::=<string>
where <string> is the name of the file to be loaded.
:MMEMORY:LOAD "MYDATA.PDA"
loads all information from the file MYDATA.PDA in the current directory into
the instrument’s internal memory.
The MMEMory:LOCK command sets and clears file locks. When a file is locked, it
cannot be deleted or written to. The MMEMory:LOCK? query returns whether or
not the file is locked.
<Path Name>::=<string>
where <string> is the name of the file to be locked or unlocked.
ON or 1
locks the file.
OFF or 0
unlocks the file.
0the file is not locked.
1the file is locked.
:MMEMORY:LOCK "COUNT1.PDA",ON
locks the file COUNT1.PDA in the current directory.
2Ć78
DG2020A Programmer Manual
MMEMory:MDIRectory
Command Descriptions
The MMEMory:MDIRectory command creates a new subdirectory. The command
is invalid if a directory with the specified name already exists.
Group
Related Commands
Syntax
Arguments
Examples
MMEMory:RDIRectory
Group
MEMORY
MMEMory:CDIRectory
MMEMory:MDIRectory <Directory Path>
<Directory Path>::=<string>
where <string> is the name or path of the new directory.
:MMEMORY:MDIRECTORY "WORK4"
creates the new directory WORK4 in the current working directory.
The MMEMory:RDIRectory command removes a subdirectory. If a file exist in
the subderectory, this command will not be performed.
MEMORY
Related Commands
Syntax
Arguments
Examples
DG2020A Programmer Manual
MMEMory:CDIRectory, MMEMory:MDIRectory
MMEMory:RDIRectory <Directory Path>
<Directory Path>::=<string>
where <string> is the name of the directory to be removed.
:MMEMORY:RDIRECTORY WORK4"
removes the directory WORK4 in the current working directory.
2Ć79
Command Descriptions
MMEMory:REName
The MMEMory:REName command changes the name of the specified file. A file
that is locked using the MMEMory:LOCk command cannot be renamed.
Related Commands
Syntax
Arguments
Examples
MMEMory:SAVE
Group
MEMORY
MMEMory:COPY
MMEMory:REName <FromĆfilename>, <ToĆfilename>
<FromĆfilename>::=<string>
where <string> is the name of the file to be changed.
<ToĆfilename>::=<string>
where <string> is the name of the file after it is changed.
:MMEMORY:RENAME "COUNT1.PDA","COUNT2.PDA"
changes the name of the file COUNT1.PDA in the current working directory to
COUNT2.PDA.
The MMEMory:SAVE command saves the pattern data and block, group, sequence,
and setup information stored in the internal memory into a disk file in DG2020A
format.
2Ć80
Group
Related Commands
Syntax
Arguments
Examples
MEMORY
MMEMory:LOAD
MMEMory:SAVE <Path Name>
<Path Name>::=<string>
where <string> is the path name of the file.
:MMEMORY:SAVE "NEWDATA.PDA"
saves all the information in internal memory to the file NEWDATA.PDA in the
current working directory.
DG2020A Programmer Manual
MODE?
Command Descriptions
The MODE? query returns all the setting states related to the pattern generation
mode.
might return :MODE:STATE REPEAT;UPDATE AUTO
Here, the run mode is set to repeat and the output pattern update method is set to
automatic. (See the items on the MODE:STATe and MODE:UPDate commands.)
Group
Related Commands
Syntax
Arguments
DG2020A Programmer Manual
The MODE:STATe command sets the run mode for pattern generation. The
MODE:STATe? query returns the pattern generation run mode setting.
MODE
MODE?
MODE:STATe {REPeat | SINGle | STEp | ENHanced}
MODE:STATe?
REPeatPattern data output is repeated.
SINGlePattern data output is performed exactly once.
STEpPattern data is output not according to the internal clock, but
rather by a clock signal created by the STEP key.
ENHancedPattern data is output according to the defined sequence.
2Ć81
Command Descriptions
Responses
Examples
MODE:UPDate (?)
Group
Related Commands
Syntax
[:MODE:STATE] {REPEAT | SINGLE | STEP | ENHANCED}
:MODE:STATE SINGLE
sets the run mode to single.
The MODE:UPDate command sets the output pattern update method used when
data related to pattern generation is changed. The MODE:UPDate? query returns
the output pattern update method used when data related to pattern generation is
changed.
MODE
MODE?
MODE:UPDate {AUTO | MANual}
MODE:UPDate?
Arguments
Responses
Examples
AUTOPattern output reflects changes each time the data is changed in
any way.
MANualPattern output is not changed when data is changed until an
update forcing command is received.
[:MODE:UPDATE] {AUTO | MANUAL}
:MODE:UPDATE AUTO
sets the output pattern update method to AUTO.
2Ć82
DG2020A 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.