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.
The DG2040 Data Generator Programmer 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:
HThe Getting Started section describes how to connect and set up for remote
operation.
HThe Syntax and Commands section defines the command syntax and
processing conventions and describes each command in the data generator
command set.
HThe Status and Events section explains the status information and event
messages reported by the data generator.
HThe Appendices section 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 DG2040 Data Generator includes:
HThe DG2040 User Manual (Tektronix part number 071-0257-XX) describes
the operation of the instrument.
HThe DG2040 Service Manual (Tektronix part number 071-0259-XX)
provides information for maintaining and servicing the Data Generator.
DG2040 Data Generator
v
Preface
Contacting Tektronix
Phone1Ć800Ć833Ć9200*
AddressTektronix, Inc.
Department or name (if known)
14200 SW Karl Braun Drive
P.O. Box 500
Beaverton, OR 97077
USA
Web sitewww.tektronix.com
Sales support1Ć800Ć833Ć9200, select option 1*
Service support1Ć800Ć833Ć9200, select option 2*
Technical supportEmail: techsupport@tektronix.com
1Ć800Ć833Ć9200, select option 3*
6:00 a.m. - 5:00 p.m. Pacific time
*This phone number is toll free in North America. After office hours, please leave a
voice mail message.
Outside North America, contact a Tektronix sales office or distributor; see the
Tektronix web site for a list of offices.
vi
DG2040 Data Generator
Getting Started
The DG2040 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 Syntax and Command Section).
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
DG2040 Data Generator
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; Be sure to 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)
DG2040 Data Generator
Installing for GPIB Communication
NOTE. Power off the instrument before connecting a GPIB cable.
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 (Refer 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
DG2040 Data Generator
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
Star Configuration
C
BD
A
F
Linear Configuration
A
BCDEF
Combination of Star and
Linear Configurations
D
C
E
E
A
F
GH
B
Figure 1Ć3: GPIB system configurations
1Ć4
Restrictions
Consider the following restrictions when distributing instruments on the GPIB
bus:
HNo more than 15 total devices (including the controller) can be included on a
signal bus.
HIn 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).
HThe total cable length (cumulative) must not exceed 66 feet (20 meters).
HAt least two-thirds of the device loads must be powered on.
DG2040 Data Generator
Getting Started
Setting the GPIB
Parameters
Follow the step below to set the GPIB parameters:
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. Highlight
GPIB using the left and right arrow buttons. This selects the GPIB as the
remote interface.
Figure 1Ć4: GPIB parameter settings
DG2040 Data Generator
1Ć5
Getting Started
Installing for RSĆ232ĆC Communication
NOTE. Power off the instrument before connecting an RS-232-C cable.
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.
DG2040
1Ć6
DG2040 Data Generator
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 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. In this data generator, only TxD, RxD, DTR, CTS pins and Signal Ground
are available.
DG2040 Data Generator
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 Baud rate 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
DG2040 Data Generator
1Ć9
Getting Started
1Ć10
DG2040 Data Generator
Syntax
Command Notation
The DG2040 Data Generator provides a large set of commands to control the
operations and functions from an external controller. This section describes the
syntax and communication rules for using these commands to operate the data
generator.
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
DG2040 Data Generator
2Ć1
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.
DG2040 Data Generator
Syntactic Delimiters
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:REFERENCE
White Space. Typically delimits command/query headers from the argument.
DIAGNOSTIC:SELECT ALL
SYSTEM:DATE 1998,4,16
DIAGNOSTIC:SELECT and SYSTEM:DATE are the command headers, and ALL and
1998,4,16 are the arguments.
Comma (,). Typically delimits between multiple arguments. In the above
example, a comma delimits the multiple arguments 1998, 4 and 16.
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.
DG2040 Data Generator
2Ć3
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.
DG2040 Data Generator
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:
DG2040 Data Generator
'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
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 1
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>]...]
DG2040 Data Generator
such as:
DIAGNOSTIC:RESULT?
or
DATA:BLOCK:SIZE? "BLOCK1"
2Ć7
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
DG2040 Data Generator
Functional Command Groups
This subsection describes the organization of the DG2040 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-16 list the command that are part of the 12 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
DG2040 Data Generator
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
Functional 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
DG2040 Data Generator
2Ć13
Functional Command Groups
EDGE Commands
HARDCOPY Commands
Use these commands to select and execute the edge control functions.
Table 2Ć8: EDGE commands
HeaderDescription
EDGE?Query all current settings related to edge control
EDGE:STATe(?)Set or query edge control on/off state
EDGE:POSITIOn(?)Set or query edge position offset
Use these commands to start and stop for hardcopy operation, and select port and
its outputting format.
Table 2Ć9: 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
MEMORY Commands
(Mass MemoryĊ
Floppy Disk)
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Ć10: 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
2Ć14
DG2040 Data Generator
Functional Command Groups
Table 2Ć10: MEMORY commands (Cont.)
HeaderDescription
MMEMory:LOCK(?)Set orĂqueryĂthe disk file lock state
MMEMory:MDIRectoryMake a new directory on the disk
MMEMory:RENameChange the name of a disk file or directory
MMEMory:SAVEWrite data to a disk file
MODE Commands
OUTPUT Commands
Use these commands to set the run and update modes.
Table 2Ć11: 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Ć12: 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
DG2040 Data Generator
OUTPut:CH<n>:DELAy(?)Set orĂqueryĂchannel delay times
OUTPut:CH<n>:HIGH(?)Set orĂqueryĂchannel highĆlevel output voltage
OUTPut:CH<n>:LOW(?)Set orĂqueryĂchannel lowĆlevel output voltage
OUTPut:CH<n>:RELEaseClear channel data bit assignments
OUTPut:CHCLK:HIGH(?)Set orĂqueryĂclockĂoutput highĆlevel output voltage
OUTPut:CHCLK:LOW(?)Set orĂqueryĂclockĂoutput lowĆlevel output voltage
OUTPut:DEFine(?)Set orĂqueryĂchannel data bit assignments
OUTPut:ELEVel(?)SetĂorĂquery the event input level
2Ć15
Functional Command Groups
SOURCE Commands
SYSTEMĂCommands
Use these commands to select the clock signal source, set the clock frequency,
and enable or disable the event input.
Table 2Ć13: SOURCE commands
HeaderDescription
SOURce:EVENT:ENABle(?)Query,Ăenable,ĂorĂdisable the event input
SOURce[:OSCillator]?Query all clock signal settings
SOURce:OSCillator:EXTernal:
FREQuency(?)
SOURce:OSCillator[:INTernal]:
FREQuency(?)
SOURce:OSCillator:REFerence(?)Set orĂqueryĂthe clock signal internal/external
SetĂorĂqueryĂthe external clock frequency
Set orĂqueryĂthe internal clock frequency
selection
Use these commands to set the system parameters such as system data and time
or security setting.
Use these commands to set the trigger conditions for the internal and external
trigger source.
Table 2Ć15: 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
2Ć16
DG2040 Data Generator
Functional Command Groups
Table 2Ć15: TRIGGER commands (Cont.)
HeaderDescription
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
Other Commands
This group is a collection of commands that cannot be classified in any other
group.
Table 2Ć16: Other commands
HeaderDescription
ABSTouchPerform the function corresponding to the
frontĆpanel control selected
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
FACToryReset all settings to defaults
HEADer(?)Allow or suppress the return of the control header in
response messages
DG2040 Data Generator
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
*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
2Ć17
Functional Command Groups
Table 2Ć16: Other commands (Cont.)
HeaderDescription
*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
DG2040 Data Generator
Command
ABSTouch
This subsection lists each command and query in the DG2040 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.
The ABSTouch command performs the same action that actuating the corresponding front-panel key, button, or knob does.
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|GHZ|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
DG2040 Data Generator
2Ć19
Command
UParrow
EXECute
RIGHtarrow
KNOBLeft
KNOBRight
HARDcopy
MANual
DG2040
DATAGENERATOR
SIDE 1
SIDE 2
SIDE 3
SIDE 4
CURSor
LEFTarrow
RUN
STEp
SETUp
EDIT
APPLication
UTILity
DOWNarrow
SIDE 5
F
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
GHZ/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 512 point named BLOCK1.
DG2040 Data Generator
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",1,0
changes the bit configuration for the group named GROUP02 to be DATA0 to
DATA1.
2Ć28
DG2040 Data Generator
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 GROUP01","GROUP02"
changes the name of the group GROUP01 to be GROUP02.
DG2040 Data Generator
2Ć31
Command
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.
The minimum memory size is 360 words, and it must be in multiples of 4.
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 1)
<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<data 1> <data 2> ... <data 128>
Number of digits
<dataN> ::= {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<data 1> <data 2> ... <data 50>
Number of digits
<data n> ::= <bit 1><bit 0>
Number of bytes
2Ć34
Responses
Each word (2 bits) of the bit pattern data is expressed as each byte . The least
significant bit (LSB) of each byte is correspond to bit 0. 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>
DG2040 Data Generator
DATA:SEQuence:ADD
Command
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.
DG2040 Data Generator
2Ć35
Command
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.
DG2040 Data Generator
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
DG2040 Data Generator
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.
DG2040 Data Generator
2Ć39
Command
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 subsequence
definition section information in ASCII. The DATA:SUBSquence:DEFine? query
returns all of the subsequence definition section information.
where <String> is a subsequence name (surrounded in double (”) or single (’)
quotes).
DG2040 Data Generator
Command
Examples
:DATA:SUBSEQUENCE:DELETE:ALL SUB1"
deletes the subsequence definition named SUB1.
DATA:SUBSequence:REPeat (?)
The DATA:SUBSequence:REPeat command sets the subsequence step repeat
count. The DATA:SUBSequence:REPeat? query returns the repeat count set for
the subsequence step.
sets the line 5 sequence step repeat count in the subsequence named SUB1 to 8.
DG2040 Data Generator
2Ć45
Command
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.
DG2040 Data Generator
2Ć49
Command
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
DG2040 Data Generator
Command
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 DG2040 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
DG2040 Data Generator
2Ć53
Command
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
DG2040 Data Generator
Command
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 secssion on page 4-1.
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 date and time are
displayed.
The DISPlay:CLOCk? query returns whether or not the date 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.
DG2040 Data Generator
Command
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.
DG2040 Data Generator
2Ć57
Command
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.
DG2040 Data Generator
DISPlay[:WINDow]:TEXT:CLEar
The DISPlay[:WINDow]:TEXT:CLEar command clears the message display area
on the screen.
Command
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.
DG2040 Data Generator
2Ć61
Command
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 EDGE? query returns all the settings related to the edge control.
2Ć62
Group
Related Commands
Syntax
Arguments
EDGE
None
EDGE?
None
DG2040 Data Generator
Command
Responses
Examples
EDGE:STATe (?)
Related Commands
Arguments
Group
Syntax
[:EDGE:STATE]{ON | OFF};[POSITION]<NR2>
EDGE?
might return :EDGE:STATE ON;POSITION 5.0e-12
The EDGE:STATe command turns the edge control on or off. The EDGE:STATe?
query returns status that indicates whether or not the edge control is being set.
EDGE
None
EDGE:STATe {ON | OFF|1|0}
EDGE:STATe?
ON or 1
turn the edge control on.
Responses
Examples
OFF or 0
turn the edge control off.
[:EDGE:STATe] {1 | 0}
:EDGE:STATE ON
turns the edge control on.
DG2040 Data Generator
2Ć63
Command
EDGE:POSITIOn (?)
The EDGE:POSITIOn command set an edge offset position by time to shift the
edge position. The EDGE:POSITIOn? query returns the edge offset position
currently set.
Related Commands
*ESE (?)
Syntax
Arguments
Examples
None
EDGE:POSITIOn <Time>
EDGE:POSITIOn?
<Time>::=<NR2>[<unit>]
where <unit>::={s|ms|ms|ns|ps} with a range of –100 ps to 100 ps, in 5 ps
steps.
:EDGE:POSITION 5ps
sets the offset position to 5 picoseconds.
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.
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.
DG2040 Data Generator
Command
*ESR?
Examples
Group
Related Commands
Syntax
*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 the Status andEvents section for more information about *ESR? or SESR.
might return 181, which indicates that the SESR contains the binary number
10110101.
DG2040 Data Generator
2Ć65
Command
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 the Status and
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 the Status and Events section.
The FACTory command resets the data generator to its factory default settings
and purges all stored settings. Refer to Appendix D, page D–1, for a list of the
factory settings.
Other
Related Commands
Syntax
Arguments
Examples
DG2040 Data Generator
*RST, SECUre
FACTory
None
:FACTORY
resets the data generator to its factory default settings.
2Ć67
Command
HCOPy?
The HCOPy? query returns the set image data format and the 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Ć68
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.
DG2040 Data Generator
HCOPy:ABORt
Command
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
DG2040 Data Generator
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Ć69
Command
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.
DG2040 Data Generator
HCOPy:PORT (?)
Command
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.
DG2040 Data Generator
2Ć71
Command
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Ć72
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.
DG2040 Data Generator
Command
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>::=DG2040
<Firmware Level>::=CF:<Code and Format Version>, and
FV:<Firmware Version>.
:ID?
returns SONY_TEK/DG2040,CF:91.1CN,FV:1.00
DG2040 Data Generator
2Ć73
Command
*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>::=DG2040,
<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.
DG2040 Data Generator
Command
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.
DG2040 Data Generator
2Ć75
Command
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.
DG2040 Data Generator
2Ć77
Command
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, nonempty subdirectories are not deleted.
2Ć78
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.
DG2040 Data Generator
MMEMory:DELete[:NAME]
The MMEMory:DELete[:NAME] command deletes the file or subdirectory with the
specified path name. However, nonempty subdirectories are not deleted.
Command
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Ć80
: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 DG2040 Data Generator format into the instruments
internal memory from a disk file.
MEMORY
MMEMory:SAVE
DG2040 Data Generator
Command
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.