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 DG2030 Data Generator. This manual
provides information on operating the instrument over a General Purpose
Interface Bus (GPIB) interface or an 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 DG2030 User Manual (Tektronix part number 071-0059-XX) describes
the operation of the instrument.
HThe DG2030 Service Manual (Tektronix part number 071-0058-XX)
provides information for maintaining and servicing the Data Generator.
DG2030 Programmer Manual
v
Preface
vi
DG2030 Programmer Manual
Getting Started
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 performed through the GPIB or the
RS-232-C interface using the programming command set (described in
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
CBAABCD
D
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
DG2030 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 serial 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 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)
DG2030 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
DG2030 Programmer Manual
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.
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 restrictions when distributing instruments on the GPIB
bus:
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 66 feet (20 meters).
4. At least two-thirds of the device loads must be powered on.
DG2030 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
DG2030 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 two 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.
DG2030
1Ć6
DG2030 Programmer Manual
RSĆ232ĆC
Connector
Getting Started
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
DG2030 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
DG2030 Programmer Manual
1Ć9
Getting Started
1Ć10
DG2030 Programmer Manual
Command Syntax
The DG2030 provides a large set of commands 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
DG2030 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-6. The ASCII code character set
table is found in Appendix A.
DG2030 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 1997,7,7
DIAGNOSTIC:SELECT and SYSTEM:DATE are the command headers, and ALL and
1997,7,7 are the arguments.
Comma (,). Typically delimits between multiple arguments. In the above
example, a comma delimits the multiple arguments 1997, 7 and 7.
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.
DG2030 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 200 mV or 1.0 MHz
instead of 200.0E–3 or 1.0E+6, respectively, to specify voltage or frequency.
DG2030 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:
DG2030 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.
2Ć5
Command Syntax
Arbitrary Block
An arbitrary block argument is defined as:
#<byte count digit><byte count>[<contiguous eightĆbit data
byte>]...
or:
#<contiguous eightĆbit data byte]... <terminator>
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
Header Mnemonic
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 channel can be specified by using the OUTPut:CH<n> header mnemonic in
commands and query commands. The term <n> is a number between 0 and 7
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>]...]
DG2030 Programmer Manual
such as:
DIAGNOSTIC:RESULT?
or
DATA:BLOCK:SIZE? "BLOCK1"
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
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
DG2030 Programmer Manual
Command Groups
This subsection describes the organization of the DG2030 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-15 list the command that are part of the 11 functional
groups.
DATA Commands
Use these commands 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ĂorĂquery 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 orĂqueryĂthe size of a block
DATA:GROUp:ADDAdd a group definition
DATA:GROUp:BIT(?)Change orĂqueryĂa groups bit structure
DATA:GROUp:DEFine(?)SetĂorĂquery the group definitions
DATA:GROUp:DELeteDelete a group definition
DATA:GROUp:DELete:ALLDelete all group definitions
DG2030 Programmer Manual
DATA:GROUp:NAME?Query the name of a group
DATA:GROUp:RENameChange a group name
DATA:MSIZe(?)Set orĂqueryĂthe pattern data memory size
2Ć11
Command Groups
Table 2Ć4: DATA commands (Cont.)
HeaderDescription
DATA:PATTern:BIT(?)Set orĂqueryĂindividual pattern data bits
DATA:PATTern[:WORD](?)Set orĂqueryĂpattern data in word units
Use these commands to execute functions associated with front panel keys,
buttons, and knobs, adjust the screen brightness, and perform other display
related functions.
Table 2Ć7: DISPLAY commands
HeaderDescription
DISPlay?Query settings made with display group commands
DISPlay:BRIGhtness(?)Set brightness of screen
DISPlay:CLOCk(?)Set orĂqueryĂthe date and time display state
DISPlay:DIMmer(?)Set orĂqueryĂthe state of the display dimmer
function
DISPlay:ENABle(?)Set orĂqueryĂ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 orĂqueryĂthe menu display on/off state
DISPlay[:WINDow]:TEXT:CLEarErase the message display area
DISPlay[:WINDow]:
TEXT[:DATA](?)
Set orĂqueryĂthe contents of the message display
area
DG2030 Programmer Manual
2Ć13
Command Groups
HARDCOPY Commands
MEMORY Commands
Use these commands to start and stop for hardcopy operation, and select port and
its outputting format.
Table 2Ć8: HARDCOPY commands
HeaderDescription
HCOPy?Query all hardcopy related information
HCOPy:ABORtStop the current hardcopy operation
HCOPy:DATA?Create and send hardcopy data
HCOPy:FORMat(?)SetĂorĂquery output format of hardcopy
HCOPy:PORT(?)SetĂorĂquery output port of hardcopy
HCOPy:STARtStart a hardcopy operation
Use these commands to control all floppy disk and file operations.
Table 2Ć9: MEMORY commands
HeaderDescription
MMEMory:CATalog[:ALL]?Query disk file and directory information
MMEMory:CATalog:ORDer(?)Set orĂqueryĂthe display order for disk file and
directory information
MMEMory:CDIRectory(?)Set orĂqueryĂthe current working directory
MMEMory:COPYCopy a disk file
MMEMory:DELete:ALLDelete all files and directories on the disk
MMEMory:DELete[:NAME]Delete the specified file or directory on the disk
MMEMory:FREE?Query disk memory usage
MMEMory:INITializeFormat a disk
MMEMory:LOADRead data from a disk file
MMEMory:LOCK(?)Set orĂqueryĂthe disk file lock state
MMEMory:MDIRectoryMake a new directory on the disk
MMEMory:RDIRectoryRemove a directory on the disk
MMEMory:RENameChange the name of a disk file or directory
MMEMory:SAVEWrite data to a disk file
2Ć14
DG2030 Programmer Manual
Command Groups
MODE Commands
OUTPUT Commands
Use these commands to set the run and update modes.
Table 2Ć10: MODE commands
HeaderDescription
MODE?Query the states related to pattern generation
MODE:STATe(?)Set orĂqueryĂthe run mode for pattern generation
MODE:UPDate(?)Set orĂqueryĂthe data update mode
Use these commands to set all the settings related to the output channels and
clock. The <n> terms in the header mnemonic are used to specify the channel in
these commands.
Table 2Ć11: OUTPUT commands
HeaderDescription
OUTPut?Query the settings related to the output channels
and clock
OUTPut:CH<n>:ASSIGn(?)Set orĂqueryĂchannel data bit assignments
OUTPut:CH<n>:DELAy(?)Set orĂqueryĂchannel delay times
OUTPut:CH<n>:DESKew(?)Set orĂqueryĂchannel deskew value
OUTPut:CH<n>:DESKEew:RESETReset channel deskew value
OUTPut:CH<n>:FALl(?)Set orĂqueryĂchannelĂfall time
Use these commands to set the trigger conditions for the internal and external
trigger source.
Table 2Ć14: TRIGGER commands
HeaderDescription
TRIGger?Query all current triggerĆrelated settings
TRIGger:IMPedance(?)SetĂorĂqueryĂthe impedance presented to the the
external trigger signal
TRIGger:INTERVal?Query the internal trigger settings
TRIGger:INTERVal:STATe(?)SetĂ or query the internal trigger state
TRIGger:INTERVal:TIME(?)SetĂor query the internal trigger interval time
TRIGger:LEVel(?)Set orĂqueryĂthe level of the external trigger signal
that generates the triggering event
TRIGger:SLOPe(?)SetĂorĂqueryĂthe slope of the external signal that
generates a triggering event
TRIGger:SOURce(?)SetĂorĂquery ĂtriggerĂsource
This group is a collection of commands that cannot be classified in any other
group.
DG2030 Programmer Manual
Table 2Ć15: Other commands
HeaderDescription
ABSTouchPerform the function corresponding to the
frontĆpanel control selected
ALLEv?Dequeue all events from Event Queue
*CAL?PerformĂcalibrationĂandĂqueryĂitsĂresalt
*CLSClear SESR, SBR and Event Queue
DESE(?)Set and query DESER
*ESE(?)Set and query ESER
*ESR?Query SESR
2Ć17
Command Groups
Table 2Ć15: Other commands (Cont.)
HeaderDescription
EVENT?Dequeue event from Event Queue
EVMsg?Dequeue event from Event Queue
EVQty?Query number of event on Event Queue
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(?)Query,Ălock, or unlock local control using the
frontĆpanel controls
*OPC(?)Generate or return the operation complete message
*OPT?Query which options are implemented for this data
generator
*PSC(?)Set orĂqueryĂpowerĆon status clear flag
*RSTReset this data generator
RUNNing?Query whether the instrument is currently outputting
a pattern or sequence
*SRE(?)Set or query SRER
STARtStart pattern or sequence output
*STB?Query SBR
STOPStop pattern or sequence output
*TRGGenerate the triggering event
*TST?Perform selfĆtest
UNLockUnlock (allow) local control using the frontĆpanel
controls
UPTime?Query the elapsed time since power on
VERBose(?)SetĂorĂquery short or long response headers
*WAIHold off all commands until all pending operations
complete
2Ć18
DG2030 Programmer Manual
Command Descriptions
This subsection lists each command and query in the DG2030 Data Generator
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
None
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 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
a turn.
1
@
of
25
DG2030 Programmer Manual
2Ć19
Command Descriptions
UParrow
EXECute
RIGHtarrow
KNOBLeft
KNOBRight
HARDcopy
MANual
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 *CAL? common command excutes self calibration on the data generator and
returns its result. This command is only used for clock calibration.
Other
None
Syntax
Arguments
Responses
Examples
*CAL?
None
<Result>
<Result>::=<NR1>
where <NR1> is one of following values:
ăă0terminated without error
800clock calibration failed
*CAL?
excutes the self caliblation and returns its result.
DG2030 Programmer Manual
2Ć21
Command Descriptions
*CLS
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.
DG2030 Programmer Manual
2Ć23
Command Descriptions
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 DATA4 to
DATA7.
2Ć28
DG2030 Programmer Manual
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.
DG2030 Programmer Manual
2Ć31
Command Descriptions
DATA:MSIZe (?)
The DATA:MSIZe command sets the bit pattern section memory area size. The
DATA:MSIZe? query returns the bit pattern section memory area setting.
Group
Related Commands
Syntax
Arguments
Responses
DATA:PATTern:BIT (?)
DATA
None
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 7)
<Address>::=<NR1>start address (0 to 262143)
<Length>::=<NR1>data length (1 to 262144)
<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.
<Address>::=<NR1>
where <NR1> is a start address (0 to 262143)
<Length>::=<NR1>data length (1 to 262144)
<Data>::=<block>arbitrary block data for the bit pattern section
Example where the data length is 50:
#250<byte 1> <byte 2> ... <byte 50>
Number of digits
<byte 1>
Number of bytes
bit 7–0
2Ć34
Responses
Each word (8 bits) of the bit pattern data is expressed as each byte . The
most significant bit (MSB) of each byte is correspond to bit 7. The data
block is formed by iterating this method for each word in order starting with
the start address.
[:DATA:PATTERN:WORD] <Address>,<Length>,<Data>
DG2030 Programmer Manual
DATA:SEQuence:ADD
Command Descriptions
The DATA:SEQuence:ADD command adds a sequence step.
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.
DG2030 Programmer Manual
2Ć35
Command Descriptions
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.
The items in <Step> are ASCII character strings that express the following
information.
<AName>the block name (with no quotation marks)
<ARepeat>repeat count (1 to 65536)
<ATo>event jump destination line number
<AWaitE>trigger wait on/off state ({ON | 1}:ON, {OFF | 0}:OFF)
<AJumpE>event jump on/off state ({ON | 1}:ON, {OFF | 0}:OFF)
<ALoopE>infinite loop on/off ({ON | 1}:ON, {OFF | 0}:OFF)
2Ć36
Responses
Examples
<LF>::=<ASCII line feed code (10)>
[:DATA:SEQUENCE:DEFINE] <Sequence Block>
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.
DG2030 Programmer Manual
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.
2Ć38
DG2030 Programmer Manual
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.
DG2030 Programmer Manual
2Ć39
Command Descriptions
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).
DG2030 Programmer Manual
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.
DG2030 Programmer Manual
2Ć45
Command Descriptions
DATA:UPDate
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
None
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.
DG2030 Programmer Manual
2Ć49
Command Descriptions
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" isdisplayed as A".
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.
2Ć50
DG2030 Programmer Manual
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>[,<ReĆ
sult>]...
<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:
2Ć52
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 DG2030 Data Generator does not respond to any commands or
queries issued during Self Test.
The DIAGnostic:RESUlt? query returns the results of self-test execution.
DIAGNOSTIC
DIAGnostic:SELect, DIAGnostic:STATe
DIAGnostic:RESUlt?
None
:DIAGNOSTIC:RESULT<Result>[,<Result>]...
<Result>::=<NR1>
where <NR1> is one of following values:
Examples
ăă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
DIAGNOSTIC:RESULT?
might return :DIAGNOSTIC:RESULT 200
DG2030 Programmer Manual
2Ć53
Command Descriptions
DIAGnostic:SELect (?)
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
2Ć54
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
DG2030 Programmer Manual
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; the
DISPlay: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.
2Ć56
Group
Related Commands
Syntax
Arguments
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.
DG2030 Programmer Manual
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.
DG2030 Programmer Manual
2Ć57
Command Descriptions
DISPlay:ENABle (?)
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?
Related Commands
Arguments
Responses
2Ć58
Group
Syntax
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.
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.
DG2030 Programmer Manual
DISPlay[:WINDow]:TEXT:CLEar
The DISPlay[:WINDow]:TEXT:CLEar command clears the message display area
on the screen.
Command Descriptions
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.
DG2030 Programmer Manual
2Ć61
Command Descriptions
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.
2Ć62
Group
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.
DG2030 Programmer Manual
2Ć63
Command Descriptions
EVENT?
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.)
Other
Related Commands
Syntax
Arguments
Examples
DG2030 Programmer Manual
*RST, SECUre
FACTory
None
:FACTORY
resets the data generator to its factory default settings.
2Ć65
Command Descriptions
HCOPy?
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.
2Ć66
Examples
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.
DG2030 Programmer Manual
HCOPy:ABORt
Command Descriptions
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
Related Commands
Syntax
Arguments
Responses
Examples
DG2030 Programmer Manual
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.
2Ć67
Command Descriptions
HCOPy:FORMat (?)
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.
DG2030 Programmer Manual
HCOPy:PORT (?)
Command Descriptions
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 destination to a file on the floppy disk.
DG2030 Programmer Manual
2Ć69
Command Descriptions
HCOPy:STARt
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.
Other
2Ć70
Related Commands
Syntax
Arguments
Responses
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.
DG2030 Programmer Manual
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.
Other
*IDN?
ID?
None
Responses
Examples
ID <Manufacturer>/<Model>, <Firmware Level>
where
<Manufacturer>::=SONY_TEK,
<Model>::=DG2030
<Firmware Level>::=CF:<Code and Format Version>, and
FV:<Firmware Version>.
:ID?
returns SONY_TEK/DG2030,CF:91.1CN,FV:1.00
DG2030 Programmer Manual
2Ć71
Command Descriptions
*IDN?
The *IDN? common query returns the ID information of the data generator.
Group
Related Commands
Syntax
Arguments
Responses
Examples
Other
ID?
*IDN?
None
<Manufacturer>, <Model>, <Serial Number>, <Firmware Level>
where
<Manufacturer>::=SONY/TEK,
<Model>::=DG2030,
<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.
DG2030 Programmer Manual
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
Other
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.
DG2030 Programmer Manual
2Ć73
Command Descriptions
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.
DG2030 Programmer Manual
2Ć75
Command Descriptions
MMEMory:COPY
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.
2Ć76
Group
Related Commands
Syntax
Arguments
Examples
MEMORY
MMEMory:DELete[:NAME]
MMEMory:DELete:ALL
None
:MMEMORY:DELETE:ALL
deletes all files and empty subdirectories in the current directory.
DG2030 Programmer Manual
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.
Command Descriptions
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.
The MMEMory:INITialize command formats a floppy disk. The format type is
specified by the argument.
Group
Related Commands
Syntax
Arguments
MEMORY
None
MMEMory:INITialize {DD1 | DD2 | HD1 | HD2 | HD3}
You can select from the following formats:
ArgumentDescription
DD12DD, 720 KB, 80 tracks, 9 sectors/track, 512 bytes/sector. Format for
IBM PC 2DD and Toshiba J3100 2DD.
DD22DD, 640 KB, 80 tracks, 8 sectors/track, 512 bytes/sector. Format for
NEC PC-9800 2DD.
HD12HD, 1.232 MB, 77 tracks, 15 sectors/track, 1,024 bytes/sector. Format
for NEC PC-9800 2HD.
HD22HD, 1.200 MB, 80 tracks, 15 sectors/track, 512 bytes/sector. Format
for Toshiba J3100 2HD.
HD32HD, 1.440 MB, 80 tracks, 18 sectors/track, 512 bytes/sector. Format
for IBM PC 2HD.
Examples
MMEMory:LOAD
Group
Related Commands
2Ć78
:MMEMORY:INITIALIZE HD3
formats a floppy disk for IBM PC 2HD.
The MMEMory:LOAD command loads in pattern data and block, group, sequence,
and setup information in DG2030 Data Generator format into the instrument’s
internal memory from a disk file.
MEMORY
MMEMory:SAVE
DG2030 Programmer Manual
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.
DG2030 Programmer Manual
2Ć79
Command Descriptions
MMEMory:MDIRectory
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:RDIRectory
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
2Ć80
Related Commands
Syntax
Arguments
Examples
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.
DG2030 Programmer Manual
MMEMory:REName
Command Descriptions
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
DG2030 Data Generator format.
Group
Related Commands
Syntax
Arguments
Examples
DG2030 Programmer Manual
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.
2Ć81
Command Descriptions
MODE?
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.)
2Ć82
Group
Related Commands
Syntax
Arguments
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.
DG2030 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.