DG2030 Data Generator Programmer Manual

194
Programmer Manual DG2030 Data Generator 071-0057-50 This document applies to firmware version 1.00 and above. www.tektronix.com

Transcript of DG2030 Data Generator Programmer Manual

Page 1: DG2030 Data Generator Programmer Manual

Programmer Manual

DG2030Data Generator

071-0057-50

This document applies to firmware version 1.00and above.

www.tektronix.com

Page 2: DG2030 Data Generator Programmer Manual

Copyright � Tektronix, Inc. All rights reserved.

Tektronix products are covered by U.S. and foreign patents, issued and pending. Information in this publication supercedesthat in all previously published material. Specifications and price change privileges reserved.

Tektronix, Inc., P.O. Box 500, Beaverton, OR 97077

TEKTRONIX and TEK are registered trademarks of Tektronix, Inc.

Page 3: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual �

����� �� �����

Preface v. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

����� �������

Getting Started 1-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Choosing an Interface 1-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing for GPIB Communication 1-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing for RS-232-C Communication 1-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

����� �����

Command Syntax 2-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Command Notation 2-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program and Response Messages 2-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Command and Query Structure 2-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Character Encoding 2-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Syntactic Delimiters 2-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . White Space 2-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Special Characters 2-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Arguments 2-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Header 2-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Concatenating Commands 2-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Query Responses 2-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Other General Command Conventions 2-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Command Groups 2-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Command Summaries 2-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Command Descriptions 2-19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Retrieving Response Messages 2-125. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

������ �� ���� ��������

Status and Event Reporting 3-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Registers 3-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Queues 3-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Processing Sequence 3-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Messages 3-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

���������� ��������

Programming Examples 4-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview of the Sample Programs 4-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Required Execution Environment 4-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Floppy Disk Files 4-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing and Compiling the Programs 4-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sample Program Functions and Usage 4-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 4: DG2030 Data Generator Programmer Manual

Table of Contents

�� DG2030 Programmer Manual

���������

Appendix A: Character Charts A–1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Appendix B: Reserved Words B–1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Appendix C: Interface Specification C–1. . . . . . . . . . . . . . . . . . . . . . . . . . . Interface Functions C–1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interface Messages C–2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Appendix D: Factory Initialization Settings D–1. . . . . . . . . . . . . . . . . . . . .

������� � ����

Glossary Glossary–1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Index Index–1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 5: DG2030 Data Generator Programmer Manual

Table of Contents

DG2030 Programmer Manual ���

���� �� ������

Figure 1-1: Functional layers in GPIB system 1-1. . . . . . . . . . . . . . . . . . .

Figure 1-2: GPIB connector 1-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Figure 1-3: GPIb system configurations 1-4. . . . . . . . . . . . . . . . . . . . . . . .

Figure 1-4: GPIB parameter settings 1-5. . . . . . . . . . . . . . . . . . . . . . . . . . Figure 1-5: RS-232-C point-to-point connection 1-6. . . . . . . . . . . . . . . . .

Figure 1-6: RS-232-C port 1-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Figure 1-7: Pin assignments of 9-pin and

25-pin D-type shell connector 1-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . Figure 1-8: Typical RS-232-C cable wiring requirements 1-8. . . . . . . . . .

Figure 1-9: RS-232-C parameter settings 1-9. . . . . . . . . . . . . . . . . . . . . . .

Figure 2-1: Command and query structure flowchart 2-2. . . . . . . . . . . . Figure 2-2: ABSTouch arguments and associated controls 2-20. . . . . . . . .

Figure 2-3: GPIB: Retrieving Response Messages 2-125. . . . . . . . . . . . . . . . Figure 2-4: RS-232-C: Retrieving Response Messages 2-125. . . . . . . . . . . .

Figure 3-1: The Standard Event Status (SESR) 3-2. . . . . . . . . . . . . . . . . . Figure 3-2: The Status Byte Register (SBR) 3-3. . . . . . . . . . . . . . . . . . . . .

Figure 3-3: The Device Event Status Enable Register (DESER) 3-4. . . .

Figure 3-4: The Event Status Enable Register (ESER) 3-4. . . . . . . . . . . . Figure 3-5: The Service Request Enable Register (SRER) 3-5. . . . . . . . .

Figure 3-6: Status and event handling process overview 3-7. . . . . . . . . . .

Page 6: DG2030 Data Generator Programmer Manual

Table of Contents

�� DG2030 Programmer Manual

���� �� ������

Table 1-1: GPIB and RS-232-C comparison 1-2. . . . . . . . . . . . . . . . . . . .

Table 2-1: BNF symbols and meanings 2-1. . . . . . . . . . . . . . . . . . . . . . . . Table 2-2: Decimal Numeric Notation 2-4. . . . . . . . . . . . . . . . . . . . . . . . .

Table 2-3: Header in query responses 2-9. . . . . . . . . . . . . . . . . . . . . . . . . . Table 2-4: DATA commands 2-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Table 2-5: DEBUG Commands 2-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 2-6: DIAGNOSTIC commands 2-13. . . . . . . . . . . . . . . . . . . . . . . . . .

Table 2-7: DISPLAY commands 2-13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 2-8: HARDCOPY commands 2-14. . . . . . . . . . . . . . . . . . . . . . . . . . .

Table 2-9: MEMORY commands 2-14. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Table 2-10: MODE commands 2-15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 2-11: OUTPUT commands 2-15. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Table 2-12: SOURCE commands 2-16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 2-13: SYSTEM commands 2-16. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Table 2-14: TRIGGER commands 2-17. . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 2-15: Other commands 2-17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Table 3-1: SESR bit functions 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 3-2: SBR bit functions 3-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Table 3-3: Definition of event codes 3-9. . . . . . . . . . . . . . . . . . . . . . . . . . .

Table 3-4: Normal condition 3-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 3-5: Command errors (CME Bit:5) 3-10. . . . . . . . . . . . . . . . . . . . . .

Table 3-6: Execution errors (EXE Bit:4) 3-12. . . . . . . . . . . . . . . . . . . . . . . Table 3-7: Internal device errors (DDE Bit:3) 3-14. . . . . . . . . . . . . . . . . . .

Table 3-8: System event and query errors 3-14. . . . . . . . . . . . . . . . . . . . . . Table 3-9: Warnings (EXE Bit:4) 3-15. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Table 3-10: Device-dependent command execution errors 3-15. . . . . . . . .

Table 3-11: Extended device specific errors 3-17. . . . . . . . . . . . . . . . . . . . . Table A–1: The DG2020 Character Set A–1. . . . . . . . . . . . . . . . . . . . . . . . .

Table A–2: ASCII & GPIB Code Chart A–2. . . . . . . . . . . . . . . . . . . . . . . . Table C–1: GPIB interface function implementation C–1. . . . . . . . . . . . .

Table C–2: GPIB interface messages C–2. . . . . . . . . . . . . . . . . . . . . . . . . . Table D–1: Factory initialized settings D–1. . . . . . . . . . . . . . . . . . . . . . . . .

Page 7: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual �

�������

This is the Programmer Manual for the DG2030 Data Generator. This manualprovides information on operating the instrument over a General PurposeInterface Bus (GPIB) interface or an RS-232-C interface.

This manual provides the following information:

� Getting Started describes how to connect and set up for remote operation.

� Syntax and Commands defines the command syntax and processingconventions and describes each command in the data generator commandset.

� Status and Events explains the status information and event messagesreported by the data generator.

� Appendices contains various topics of use to the programmer.

� Glossary and Index contains a glossary of common terms and an index tothis manual.

������� !�����

Other documentation for the data generator includes:

� The DG2030 User Manual (Tektronix part number 071-0059-XX) describesthe operation of the instrument.

� The DG2030 Service Manual (Tektronix part number 071-0058-XX)provides information for maintaining and servicing the Data Generator.

Page 8: DG2030 Data Generator Programmer Manual

Preface

�� DG2030 Programmer Manual

Page 9: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual "#"

����� �������

The Data Generator has two interfaces for remote operation: the GPIB interfaceand the RS-232-C interface. All menu-controlled and front-panel controlledfunctions, except the ON/STBY function, the edit function, and the GPIB andRS-232-C parameter setup functions, can be performed through the GPIB or theRS-232-C interface using the programming command set (described inSection 2).

The GPIB interface conforms to ANSI/IEEE Std 488.1-1987, which specifies thehardware interface, its basic functional protocol, and a set of interface messages(codes) that control the interface functions. This instrument also conforms toANSI/IEEE Std 488.2-1987 which specifies Codes, Formats, Protocols, andCommon Commands to support the system application. The functional layers ofthe GPIB system are shown in Figure 1-1.

������ ������ � ������ ������ �

� � � � � �

����� �� ���� ����������

������ ����� ��������

����� ������� �� �������

�������������� ��������

��������!�

������

�""" #$$%&�������

�""" #$$%'�������

��������!�

������

�""" #$$%&�������

�( �������� ������ )���� ( ������� ����������� ������ )�����( ����� ������ ������ )�����( ������ ������ )����

����� "#"$% ������� ������ � ��& ������

Page 10: DG2030 Data Generator Programmer Manual

Getting Started

"#' DG2030 Programmer Manual

The RS-232-C interface, which was established by the Electronic IndustriesAssociation (EIA), provides a common basis of serial communication betweendevices that exchange data. This interface has long been used on terminals,modems, printers, and other devices. The RS-232-C interface that the datagenerator provides also uses most of the same codes, formats, protocols, andcommon 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 yoursystem; if so, you should consider the advantages and disadvantages of eachinterface. For example, the GPIB interface is an eight-bit parallel bus andtherefore it offers high-speed data transfers and multiple instrument control. Incontrast, the RS-232-C interface is a slower serial data bus for single instrumentcontrol, 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.

����� "#"$% ��& �� ��#')'# ���������%

*������� ��������� ��& ��#')'#

��!*� ����+�""" ��� #$$ ,�-��� .��"/

���� �*�- �����* 0���-���1 2�-��� 3���3�4� �*�����( ���� .56�+56��/13��� .���+���/

���� ������ $�!�� ���**�* $�!�� �����*

�������� �����* 6������ *�-�*���* �����*�������

���

�������� �������� ���� ����+�""" ��� #$$ ������ �*��� ��� ����� !���4����*

�������� ������� ������� ��7����������� �� ���� ����

������ �� ���� ����.� ������� ��7�����/

������� ���������.�������/

0���-��� "6�1 ����-��� )�1 ��!��3

����-��� ��1 )�1 �� �� ��)�

������� ���������.�������/

0���-��� "6�1 �� ����-���)�

����-��� )�

����� ����3����� ����3�����

���������� ��3 *���3 ≤& ������ !��-�� �������8≤&9 ������ ����* ��!*�� ���:;� ������

≤'< ������

���� &99 =!����+��� ',1&99 !���+���

������ �������� ��*��*� ������� .≤'</ ���*� ������* .��� �� ����������/

Page 11: DG2030 Data Generator Programmer Manual

Getting Started

DG2030 Programmer Manual "#)

�������� ��� ��& ����������

With the power off, connect a GPIB cable from the GPIB controller to theANSI/IEEE Std 488 port (GPIB) connector on the rear panel of the datagenerator (see Figure 1-2). For example, when using an MS-DOS compatiblecontroller, connect the GPIB cable between the National Instrument PC2A GPIBboard and the data generator GPIB connector.

:;� �������

����� "#'$% ��& �������

Instruments can be connected to the GPIB in linear or star configurations or in acombination of both configurations. A linear hookup is one where a GPIB cableis used to string one device to a second, and then another GPIB cable is used tostring from a second to a third, and so on until all devices in the system areconnected. A star setup is one where one end of all the GPIB cables in thesystem are attached to one device. Refer to Figure 1-3 for these GPIB systemconfigurations.

Page 12: DG2030 Data Generator Programmer Manual

Getting Started

"#+ DG2030 Programmer Manual

����� ����������

���� ����������

�������� �� ���� ������� �����������

"

� � " �

"

: 0

����� "#)$% ��� ������ ������������

Consider the following restrictions when distributing instruments on the GPIBbus:

1. No more than 15 total devices (including the controller) can be included on asignal bus.

2. In order to maintain the electrical characteristics of the bus, one device loadmust be connected for every two meters of cable (most often, each devicerepresents 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.

�����������

Page 13: DG2030 Data Generator Programmer Manual

Getting Started

DG2030 Programmer Manual "#,

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 (SeeFigure 1-4).

3. Select the Configure item from the GPIB menu using the up and down arrowbuttons. Set the GPIB operating mode using the left and right arrow buttons.

� Talk/Listen. Sets the communications mode to talk/listen.

� Talk Only. Sets the communications mode to talk only, which is used forhardcopy output.

� Off Bus. Logically disconnect the data generator from GPIB system.

����. The data generator accepts as a terminator either the software LF (LineFeed), sent as the last data byte, or the hardware EOI, with the EOI line assertedconcurrently with the last data byte sent.

4. Select the Address item from the GPIB menu using the up and down arrowbuttons. Then use the rotary knob to set the primary address to a value in therange 0 to 30.

5. Select the Remote Port item using the up and down arrow buttons, andadditionally, highlight “GPIB” using the left and right arrow buttons. Thisselects the GPIB as the remote interface.

:;� ���

����� "#+$% ��& ��������� �������

������ �(� ��&����������

Page 14: DG2030 Data Generator Programmer Manual

Getting Started

"#- DG2030 Programmer Manual

�������� ��� ��#')'# ����������

Connect an RS-232-C cable from the computer terminal to the RS-232-Cconnector on the rear panel of the data generator. Use a configuration based onthe settings for the data flow control (flagging).

The RS-232-C provides a point-to-point connected communication interfacebetween two devices (see Figure 1-5). The data generator can transmit andreceive the same message serially over the RS-232-C interface as it can inparallel over the GPIB interface.

�:&929�����**��

����� "#,$%��#')'# ����#��#���� �������

Several connectors are used with the RS-232-C interface: a DTE device uses astandard 25-pin male D-type shell connector; a DCE device uses a standard25-pin female D-type shell connector. Some recent computers implement theRS-232-C interface using 9-pin D-type connector.

This data generator uses a standard 9-pin D-type shell connector, provided on therear panel (see Figure 1-6), along with a 9-pin male to 25-pin male conversioncable. Figure 1-7 on page 1-8 shows both 9-pin and 25 pin connectors withtheir pin number assignments.

Page 15: DG2030 Data Generator Programmer Manual

Getting Started

DG2030 Programmer Manual "#.

���&2&���������

����� "#-$%��#')'# ����

This data generator is designed as DCE device. You may connect it up to15 meters (50 feet) from a DTE device using a straight-through male-to-femalecable. However, if the other device is instead configured as a DCE device, youwill need a special adapter or null-modem cable for local DCE-to-DCEcommunications. Refer to the wiring examples in the Figure 1-8 for the propersignal connections between devices.

����. In this data generator, only TxD, RxD, DTR, CTS pins and Signal Ground areavailable.

Page 16: DG2030 Data Generator Programmer Manual

Getting Started

"#/ DG2030 Programmer Manual

&

,�;�� ���0"))

������� ���� .���/ 2

2 ������� ���� .���/ &

# ���� ������* ����� .���/ &9

< ����* :���� >

$ �*��� �� ��� .���/ <

&<�;�� ���0"))

����� ���� ���� ���� ��� � �� � ���� ��� �� ���������� ��� ��� ������ ��

'

&

2

#

<

?

>

$

, <

#

2

&

'

'>

'?

'<

'#

'9

,

$

>

?

'2

'&

''

&'

&9

',

'$

&<

&#

&2

&&

����� "#.$%�� ��������� �� 0#�� �� ',#�� 1#���� �(��� �������

;�

&

2

#

<

$

&

2

#

<

$

&

2

#

<

$

&

2

#

<

$

;� ;� ;�

,�� ��" �� ,�� ��" ,�� ��" �� ,�� ��"

&

2

#

<

$

&

2

<

>

&9

;� ;�

,�� ��" �� &<�� ��"

&

2

#

<

$

&

2

<

>

&9

;� ;�

,�� ��" �� &<�� ��"

�������� ���� � ������ �� � � �� �� ��� ������� ���� � �� � �� � �����

����� "#/$%������� ��#')'# ����� 2���� ��3��������

Page 17: DG2030 Data Generator Programmer Manual

Getting Started

DG2030 Programmer Manual "#0

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 arrowbuttons. Here select the data transfer rate using the left and right arrowbuttons. The rate can be set to 300, 600, 1200, 2400, 4800, 9600, or 19200baud.

4. Select the Data Bits item from the Serial menu using the up and down arrowbuttons. Then use the left and right arrow buttons to select the data bit lengthfor 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 arrowbuttons. Then use the left and right arrow buttons to set the error check bitfor 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 arrowbuttons. Then use the left and right arrow buttons to select the number ofstop bits sent after each character. The number of stop bits can be set toeither 1 or 2.

7. Select the Handshake item from the Serial menu using the up and downarrow buttons. Then use the left and right arrow buttons to select the methodof controlling the flow of data between devices. The data flow method canbe 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, andadditionally, highlight “RS232C” using the left and right arrow buttons. This selects the RS-232-C interface as the remote interface.

�����* ���

����� "#0$%��#')'# ��������� �������

������ �(� ��#')'����������

Page 18: DG2030 Data Generator Programmer Manual

Getting Started

"#"4 DG2030 Programmer Manual

Page 19: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual '#"

����� �����

The DG2030 provides a large set of commands to control the operations andfunctions of the data generator from an external controller. This section describesthe syntax and communication rules for using these commands to operate thedata generator.

����� 5������

The command syntax is in extended BNF (Backus-Naur Form) notation. Theextended BNF symbols used in the command set are shown in the followingtable.

����� '#"$%&5 ������� �� ������%

������ !����

��� �������� � ������ �*����

� ��*����� "��*����� 6� �*�����

��� ��*����� � ���� �� �*����� �� �� -3��3 �3� ��������� ���� ��*���

��� ��*����� � �����* �*���� �3�� �3� ��������� ��� ����

��� ��*����� � �����* �*���� �3�� �3� ��������� ��� ���� �� ��� ����� ���� ���� �����

� �������� �3�� �3� *��� ���!�� �� ������ �� �3�- !� �3� �3� ���3� ���!��

������� �� ������� !�������

Programs created or placed in an external controller are transferred to the datagenerator as a program message. A program message is a sequence of zero ormore program message units delimited by the program message unit delimiter,the semicolon (;).

A program message unit is a set command or query command. The datagenerator performs a function or changes a setting or mode when it receives a setcommand; when it receives a query command, it returns measurement data,settings, status codes and/or status messages. The data generator transfers theseresponse messages to the external controller.

Page 20: DG2030 Data Generator Programmer Manual

Command Syntax

'#' DG2030 Programmer Manual

����� �� 6���� ���������

Commands are either set commands or query commands (usually just calledcommands and queries in this manual). Most commands have both a set formand 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. Thestructure of the header is described in detail in Header on page 2-6.

0�����������

�������

������

�������

0�����������

�������

�������

������

������

������

�����

�����

�����

����� '#"$%����� �� 3���� ��������� ���2�(���

(������� ������

The program can be described using the American Standard Code for Informa-tion Interchange (ASCII) character encoding.

This seven-bit ASCII code is used for the majority of syntactic elements andsemantic definitions. In special cases, an eight-bit ASCII Code is allowed in thearbitrary block arguments described on page 2-6. The ASCII code character settable is found in Appendix A.

Page 21: DG2030 Data Generator Programmer Manual

Command Syntax

DG2030 Programmer Manual '#)

�������� 1���������

Syntactic elements in a program message unit are delimited (differentiated) withcolons, white space, commas, or semicolons.

��� 7$89 Typically delimits the compound command header.

����������������� ����������������������

:(��� �����9 Typically delimits command/query headers from the argument.

���������������� ������������� ��������

���������������� and ���������� are the command headers, and ��� and�������� are the arguments.

���� 7;89 Typically delimits between multiple arguments. In the aboveexample, a comma delimits the multiple arguments ����, � and �.

�������� 7<89 Typically delimits between multiple commands (or multipleprogram message units). For more information about using the semicolon, referto 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 rangeASCII 0-32 (decimal). This range consists of the standard ASCII charactersexclusively 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 allcharacters in the range of ASCII 127-255 are defined as special characters. Thesecharacters are used in arbitrary block arguments only; using these characters inother parts of any command yields unpredictable results.

Page 22: DG2030 Data Generator Programmer Manual

Command Syntax

'#+ DG2030 Programmer Manual

��������

In a command or query, one or more arguments follow the command header. Theargument, sometimes called program data, is a quantity, quality, restriction, orlimit associated with the command or query header. Depending on the commandor query header given, the argument is one of the following types:

� Decimal Numeric

� String

� Arbitrary Block

The data generator defines a decimal numeric argument as one expressed in oneof three numeric representations: NR1, NR2, or NR3. This definition complieswith that found in ANSI/IEEE Std 488.2-1987. Any commands that usearguments in any of the the first three notations can use a fourth notation NRf(for Numerical Representation flexible). The four formats are shown inTable 2-2.

����� '#'$%1������ 5������ 5������%

���� ����� ��������

��' ��*�������� .������/ '1 @21 A&1 @'91 A&9

��& ��*�������� ����*��.����� ���/

'1 &1 @&2%<1 A9%'<

��2 ��*�������� ���*�� .�*����� ���/ '"@&1 @2%2?"A&1 A'%9&"@2

��� ������ �������������*���!*�8 �� ����'1 ��&1 �� ��2 ��� !� ����

'1 @&2%<1 A'%9&"@2

As just implied, you can use NRf notation for arguments in your programs forany commands that this manual lists as using any of NR1, NR2, or NR3 notationin its arguments. Be aware, however, that query response will still be in theformat specified in the command. For example, if the command description is���� �����, you can substitute NR2 or NR3 when using the command in aprogram. However, if you use the query ���� , the data generator will respondin the format <NR1> to match the command description in this manual.

If the decimal numeric argument refers to a voltage or frequency, you canexpress 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’Unitesstandard.) For example, you can use the input format 200 mV or 1.0 MHzinstead of 200.0E–3 or 1.0E+6, respectively, to specify voltage or frequency.

1������ 5������

=�� �� �� ������

Page 23: DG2030 Data Generator Programmer Manual

Command Syntax

DG2030 Programmer Manual '#,

You can omit the unit, but you must include the SI unit prefix. You can use eitherupper 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 eitherlower or upper case prefixes can be used.

�� ������" �>! ?>@ �>!

���������� ;�-�� '9A2 '92 '9?

" 5��� �(�� �(� ������ �>! �������� "4A) 2(� �(� ������� ������ ������� �������������; ��� "4- 2(� �� ������ ���3����9

String, sometimes referred to as a string literal, a literal, or just a string, isdefined as a series of characters enclosed by double quotation marks (”) as in:

�!"# "# $ #%&"'( )*'#%$'% ��*&�� + �,�

To include a double quoted character in the string, insert an additional doublequote character ahead of the double quote character in the string. For example,the string:

#-&"$. '/01-& 2+�++++

would be defined as:

#-&"$. '/01-& 2+�++++

Single quotation marks (’) can also be used instead of double quotation marks.For instance:

3#-&"$. '/01-& 332+�++++333

String constants may be of any length up to the memory limits of the instrumentin which the message is parsed.

�����

Page 24: DG2030 Data Generator Programmer Manual

Command Syntax

'#- DG2030 Programmer Manual

An arbitrary block argument is defined as:

4�15%- )*/'% 6"("%��15%- )*/'%���)*'%"(/*/# -"(!%71"% 6$%$15%-��

or:

4�)*'%"(/*/# -"(!%71"% 6$%$ 15%-� �%-&0"'$%*&�

where:

�15%- )*/'% 6"("%�::= a nonzero digit in the range ASCII 1-9 that defines thenumber of digits (bytes) in the �15%- )*/'%� field.

�15%- )*/'%�� any number of digits in the range ASCII 0-9 that define howmany bytes are in the �)*'%"(/*/# 871"% 6$%$ 15%-� field.

�)*'%"(/*/# 871"% 6$%$ 15%-�::= a �15%- )*/'%� number of 8-bit bytes inthe range ASCII 0-255 that define the message. Each byte defines one character.

�%-&0"'$%*&�::= a software LF followed by a hardware EOI. For example,

4�9�2:;����<��=����

B�����

The header mnemonic represents a header node or a header subfunction. Thecommand or query header comprises one or more header mnemonics that aredelimited with the colon (:).

The channel can be specified by using the OUTPut:CH<n> header mnemonic incommands and query commands. The term <n> is a number between 0 and 7that expresses the specified channel.

Commands and queries can be structured into six basic forms.

� Simple command header

� Simple query header

� Compound command header

� Compound query header

� Common command header

� Common query header

��������� &���?

B����� !�����

(��� ������������

B����� ���������

Page 25: DG2030 Data Generator Programmer Manual

Command Syntax

DG2030 Programmer Manual '#.

Figure 2-1 on page 2-2 shows the syntax for all possible structures, and each ofthe six basic forms are explained below.

������ ����� B�����9 A command that contains only one header mnemonic.It may also contain one or more arguments. Its message format is:

���>-$6-& �'-0*'")� ���&(/0-'%�����&(/0-'%���

such as:

�����or

���?

������ 6���� B�����9 A command that contains only one header mnemonicfollowed by a question mark (?). Its message format is:

���>-$6-& �'-0*'")� ���&(/0-'%�����&(/0-'%���

such as:

>��?� or

�������

������ ����� B�����9 A command that contains multiple headermnemonics plus argument(s). Its message format is:

���>-$6-& �'-0*'")���>-$6-& �'-0*'")�����&(/0-'%�����&(/0-'%���

such as:

���������������;� >��or

������������������� ��

������ 6���� B�����9 A command that contains multiple header mnemonicsfollowed by a question mark (?). Its message format is:

[:]<Header Mnemonic>[:<Header Mnemonic>]...? [<Argument>[,<Argument>]...]

such as:

���������������� or

����2���@��;� 2���@�

Page 26: DG2030 Data Generator Programmer Manual

Command Syntax

'#/ DG2030 Programmer Manual

���� ����� B�����9 A command that precedes its header mnemonic withan asterisk (*). Its message format is:

�>-$6-& �'-0*'")� ���&(/0-'%�����&(/0-'%���

such as:

A���

The common commands are defined by IEEE Std 488.2 and are common to alldevices which support IEEE Std 488.2 on the GPIB bus.

���� 6���� B�����9 A command that precedes its header mnemonic with anasterisk (*) and follows it with a question mark (?). Its message format is:

�>-$6-& �'-0*'")� ���&(/0-'%�����&(/0-'%���

such as:

A���

The common commands are defined by IEEE Std 488.2 and are common to alldevices which support the IEEE Std 488.2 on the GPIB bus.

��������� ������

Most of the compound command headers are in a tree structure. The treestructure of an example command is diagrammed below. Note that the top of thestructure always begins with a colon (:).

��� ������ �"���" �"���"B%%% �"���" �� ���")"�"B%%% �")"�"B%%%C6��

(����(

)6�= :�6 ; ���D" ;���"�� �"� "��" ;���"

The following example of a compound command combines three headersdelimited by semicolons:

����2���@��� B�,� 2���@C D ����2���@������ 2���@, D����2���@��;� 2���@� �B�,

Page 27: DG2030 Data Generator Programmer Manual

Command Syntax

DG2030 Programmer Manual '#0

You must include the complete path in each header when there is no commoncomplete path to the start of the tree structure (the colon). However, note thatpart of each header in the above example has a common path ����2���@. Youmay shorten compound command structures with such headers. For example, thecommand above may be rewritten as follows.

����2���@��� B�,� 2���@C D ������ 2���@, D ��;� 2���@� �B�,

Note that the mnemonics ���� and 2���@ are assumed from the first headerby the headers that follow. The following command descriptions are validexamples of commands shortened using the principle just described. (Note thatthe insertion of common command (A���) between headers does not prevent theheaders that follow from assuming the earlier header mnemonics.)

����2���@��� B�,� 2���@C D ������ 2���@, D��������?������ ����?:

�������;� �9C8:D 2���@��� B�,� 2���@C D ������ 2���@,

����2���@��� B�,� 2���@C D A��� D ������ 2���@, D ��;� 2���@� �B�,

The following examples have been shortened incorrectly and cause errors.

����2���@������ 2���@, D ��������?������ ����?:

����2���@��� B�,� 2���@C D ����?������ ����?:

����2���@������ 2���@, D ���;� �9C8:

6���� ��������

The query causes the data generator to return information about its status orsettings. A few queries also initiate an operation action before returninginformation; for instance, the *TST? query performs the self test.

If the programmer has enabled headers to be returned with query responses, thedata generator formats a query response like the equivalent set-command headerfollowed 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.

����� '#)$%B����� � 3���� ��������%

6���� B����� * B����� *��

�������;� �������;� �9C8: �9C8:

���������������� ���������������� ?������ ?������

Page 28: DG2030 Data Generator Programmer Manual

Command Syntax

'#"4 DG2030 Programmer Manual

Use the command >����� �� when you want the header returned along with theinformation. You can save such a response and send it back as a set-commandlater. Use >����� �<< when you want only the information back.

*�(�� ����� ����� �������

The instrument accepts upper, lower, or mixed case alphabetic messages. Thefollowing three commands are recognized as identical.

>����� ��or

!-$6-& *'or

!-$6-& �'

Any header, argument, or reserved word that is sent to the data generator can beabbreviated. The minimum required spelling is shown in upper case throughoutthe subsection Command Groups beginning on page 2-11. The command����(-&���?- ?��"%"E- can be rewritten in either of the following forms.

����������?� ?�����F�or

�������? ?��

=���� �� ��2�� ���

�����������

Page 29: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual '#""

����� �����

This subsection describes the organization of the DG2030 Data Generatorcommand as a number of functional groups. (See subsection CommandDescriptions on page 2-19 for a complete description of each command inalphabetical order.)

Throughout this section, the parenthesized question symbol (?) follows thecommand header to indicate that both a command and query form of thecommand can be used.

����� ���������

Tables 2-4 through 2-15 list the command that are part of the 11 functionalgroups.

Use these commands to define blocks, groups, and sequences, to set up patterndata, and to set which sequence controls become valid when the run mode is setto Enhanced.

����� '#+$%1��� �������%

B����� 1���������

���� ����� �3� ������� ��*���� �� ����� ����

����2���G��� ��� � !*��4 ��������

����2���G��<"'-H I ���E��E7���� �3� !*��4 ���������

����2���G���-%- ��*��� � !*��4 ��������

����2���G���-%-��� ��*��� �** !*��4 ���������

����2���G���$0- �3��� � !*��4 ���

����2���G��;-H I �3��� ��E7����E�3� ��F� �� � !*��4

��������J��� ��� � ���� ��������

��������J2��H I �3��� ��E7����E� ����� !�� ���������

��������J��<"'-H I ���E��E7���� �3� ���� ���������

��������J���-%- ��*��� � ���� ��������

��������J���-%-��� ��*��� �** ���� ���������

��������J���� ����� �3� ��� �� � ����

��������J���$0- �3��� � ���� ���

�������;-H I ��� ��E7����E�3� ����� ���� ������ ��F�

1��� ������

Page 30: DG2030 Data Generator Programmer Manual

Command Groups

'#"' DG2030 Programmer Manual

����� '#+$%1��� �������%7��98

B����� 1���������

����?���-&'2��H I ��� ��E7����E��������* ����� ���� !���

����?���-&'�K����H I ��� ��E7����E����� ���� � -��� ����

������L/-')-��� ��� � ��7���� ���

������L/-')-��<"'-H I ��� ��E7����E�3� ��7���� ���������

������L/-')-���-%- ��*��� � ��7���� ���

������L/-')-���-%-��� ��*��� �** ��7���� ���������

������L/-')-�FMH I ��� ��E7����E�3� ���� G�� �+��� �����

������L/-')-�FM��H I ��� ��E7����E�3� ���� G�� ���������

������L/-')-���?H I ��� ��E7����E�3� ������ *�� �+��� �����

������L/-')-��?-$%H I ��� ��E7����E�3� ����� ����E��E�E��7����E���

������L/-')-�K���H I ��� ��E7����E�3� ������� -��� �+��� �����

������2�-N/-')-��� ��� � ��!E��7����E���

������2�-N/-')-����& ��*���E�** ��!E��7���� ���������

������2�-N/-')-��<"'-H I ��� ��E7����E�3� ��!E��7���� ���������

������2�-N/-')-���-%- ��*��� � ��! ��7���� ���

������2�-N/-')-���-%-��� ��*��� � ��! ��7���� ��������

������2�-N/-')-��?-$%H I ��� ��E7����E�3� ����� ����E��E�E��!E���7����E���E

�����?�$%- �����!*� ����� �3� ����� �� ��3�� ����

Use these commands to set all settings for debugging.

����� '#,$%1�&= ������%

B����� 1���������

��2/( ����� �** ������� ��� ��!�����

��2/(���*J ����� �** ������� ��� ��!�����

��2/(���*J����5 ����� ��*�� ���� ��� ��!�����

��2/(���*J����5����H I ��� ��E7����E��*�� ���� ��� ��!�����

��2/(���*J����-H I ��� � �� ��� ��� ��!�����

1�&= ������

Page 31: DG2030 Data Generator Programmer Manual

Command Groups

DG2030 Programmer Manual '#")

Use these commands to select and execute the self-test routines, which areclassified by function.

����� '#-$%1�� 5*��� �������%

B����� 1���������

����'*#%") ����� �** ������ ������� ��*���� �� ��*� ����

����'*#%")����.% ����� ��*������ ����*�

����'*#%")���-)%H I ���E��E7���� ��*������ ������

����'*#%")����- ;������ ��*������

Use these commands to execute functions associated with front panel keys,buttons, and knobs, adjust the screen brightness, and perform other displayrelated functions.

����� '#.$%1�����C �������%

B����� 1���������

���?.$5 ����� ������� ���� -��3 ���*�� ���� �������

���?.$52���!%'-##H I ��� !���3���� �� �����

���?.$5����GH I ��� ��E7����E�3� ���� �� ���� ���*�� �����

���?.$5���0-&H I ��� ��E7����E�3� ����� �� �3� ���*�� ������������

���?.$5���2.-H I ��� ��E7����E�3� ���*�� �+��� �����

���?.$5���� ����� �** ��� ���*�� ��*���� ���������

���?.$5���������� ��� �3� ��� ��*����� �����

���?.$5�������� ����� �3� ��� ��*����� �����

���?.$5��������-H I ��� ��E7����E�3� ��� ���*�� �+��� �����

���?.$5�K���*O���P����$& "���� �3� ������� ���*�� ����

���?.$5�K���*O���P�������H I

��� ��E7����E�3� ������ �� �3� ������� ���*������

1�� 5*��� ������

1�����C ������

Page 32: DG2030 Data Generator Programmer Manual

Command Groups

'#"+ DG2030 Programmer Manual

Use these commands to start and stop for hardcopy operation, and select port andits outputting format.

����� '#/$%B��1*�C �������%

B����� 1���������

>��?5 ����� �** 3������ ��*���� ���������

>��?5�2��% ��� �3� ������ 3������ �������

>��?5���� ������ �� ��� 3������ ����

>��?5<���$%H I ���E��E7���� ����� ������ �� 3������

>��?5?���H I ���E��E7���� ����� ��� �� 3������

>��?5����% ����� � 3������ �������

Use these commands to control all floppy disk and file operations.

����� '#0$%!�!*�C �������%

B����� 1���������

����*&5���$.*(����� ����� ���4 ��*� �� ��������� ���������

����*&5���$.*(���-&H I ��� ��E7����E�3� ���*�� ����� ��� ���4 ��*� ����������� ���������

����*&5����-)%*&5H I ��� ��E7����E�3� ������ -��4�� ���������

����*&5��?� ��� � ���4 ��*�

����*&5���-%-��� ��*��� �** ��*�� �� ����������� � �3� ���4

����*&5���-%-������ ��*��� �3� �������� ��*� �� ��������� � �3� ���4

����*&5<��� ����� ���4 ������ �����

����*&5����"$."Q- ������ � ���4

����*&5���� ���� ���� ���� � ���4 ��*�

����*&5���@H I ��� ��E7����E�3� ���4 ��*� *��4 �����

����*&5����-)%*&5 ��4� � �- ��������� � �3� ���4

����*&5����-)%*&5 ������ � ��������� � �3� ���4

����*&5���$0- �3��� �3� ��� �� � ���4 ��*� �� ���������

����*&5��F� C���� ���� �� � ���4 ��*�

B��1*�C ������

!�!*�C ������

Page 33: DG2030 Data Generator Programmer Manual

Command Groups

DG2030 Programmer Manual '#",

Use these commands to set the run and update modes.

����� '#"4$%!*1� �������%

B����� 1���������

���� ����� �3� ������ ��*���� �� ����� ��������

��������-H I ��� ��E7����E�3� �� ���� ��� ����� ��������

�����?�$%-H I ��� ��E7����E�3� ���� ����� ����

Use these commands to set all the settings related to the output channels andclock. The �'� terms in the header mnemonic are used to specify the channel inthese commands.

����� '#""$%*=��=� �������%

B����� 1���������

���?/% ����� �3� ������� ��*���� �� �3� ����� �3��*��� �*��4

���?/%�>�'������'H I ��� ��E7����E�3��* ���� !�� ���������

���?/%�>�'�����5H I ��� ��E7����E�3��* ��*�� �����

���?/%�>�'����@-OH I ��� ��E7����E�3��* ���4�- ��*��

���?/%�>�'����@�-O����� ����� �3��* ���4�- ��*��

���?/%�>�'�<��.H I ��� ��E7����E�3��*E��** ����

���?/%�>�'�<��. R���(- �����E�3��*E��**E����E��*��E����

���?/%�>�'�<��. RF��"6 �����E�3��*E��**E����E��E���E��*�����

���?/%�>�'�>��>H I ��� ��E7����E�3��* 3��3�*���* ����� ��*����

���?/%�>�'���>"1"%H I ��� ��E7����E�3��* 3��3�������� �����*���3��

���?/%�>�'���KH I ��� ��E7����E�3��* *�-�*���* ����� ��*����

���?/%�>�'�����$#- �*��� �3��* ���� !�� ���������

���?/%�>�'����-H I ���E��E7����E�3��*E����E����

���?/%�>�'����- R���(- �����E��3�*E����E����E��*��E����

���?/%�>�'����- RF��"6 �����E�3��*E����E����E��E���E��*�����

���?/%�>��@<��.H I ���E��E7����E�*��4E�����E��**E����

���?/%�>��@<��. R���(- �����E�*��4E�����E��**E���� ��4�� ����

���?/%�>��@<��. RF��"6 �����E�*��4E�����E��**E����E��E���E��*�����

���?/%�>��@>��>H I ��� ��E7����E�*��4E����� 3��3�*���* ����� ��*����

!*1� ������

*=��=� ������

Page 34: DG2030 Data Generator Programmer Manual

Command Groups

'#"- DG2030 Programmer Manual

����� '#""$%*=��=� �������%7��98

B����� 1���������

���?/%�>��@��KH I ��� ��E7����E�*��4E����� *�-�*���* ����� ��*����

���?/%�>��@���-H I ���E��E7����E�*��4E�����E����E����

���?/%�>��@���- R���(- �����E�*��4E�����E����E����E��*��E����

���?/%�>��@���- RF��"6 �����E�*��4E�����E����E����E��E���E��*�����

���?/%��<"'-H I ��� ��E7����E�3��* ���� !�� ���������

���?/%���F-.H I ���E��E7���� �3� ���� ��� *���*

���?/%���F-.H I ��� ��E7����E�3� �3�!�� ��� *���*

Use these commands to select the clock signal source, set the clock frequency,and enable or disable the event input.

����� '#"'$%�*=�� �������%

B����� 1���������

����)-�F������2.-H I �����1E��!*�1E��E����!*� �3� ���� ���

����)-����"..$%*&� ����� �** �*��4 ����* �������

����)-���"..$%*&�P�-&'$.<��L/-')5H I

���E��E7����E�3� ������* �*��4 ���7����

����)-���"..$%*&����-&'$.�<��L/-')5H I

��� ��E7����E�3� �����* �*��4 ���7����

����)-���"..$%*&����-&'$.�?��.*)GH I

��� ��E7����E�3� �����* �*��4 ����**���� ������� ;))������� �����

����)-���"..$%*&����)-H I ��� ��E7����E�3� �*��4 ����* �����*+������*��*�����

Use these commands to set system parameters such as system data and time orsecurity setting.

����� '#")$%�C���! �������%

B����� 1���������

����-0����H I ���E��E7����E������E����EH����1���31���I

����-0??��#-H I ��� ��E7����E�3� ������ ��� ������ ������� -3�� ��*������������ ������� � �����

����-0���/&"%5���-6"$%- ��*��� �** ������� �� ����

�*=�� ������

�C���!D������

Page 35: DG2030 Data Generator Programmer Manual

Command Groups

DG2030 Programmer Manual '#".

����� '#")$%�C���! �������%7��98

B����� 1���������

����-0���/&"%5����-H I ��� E��E7����E�3� �������� �+��� �����

����-0����H I ���E��E7����E������E����EH3���1�����1�����I

Use these commands to set the trigger conditions for the internal and externaltrigger source.

����� '#"+$%��� �� �������%

B����� 1���������

����(-& ����� �** ������ ����������*���� �������

����(-&��?-6$')-H I ���E��E7����E�3� ������� ������� �� �3� �3�������* ������� ����*

����(-&�����F$. ����� �3� �����* ������� �������

����(-&�����F$.����-H I ���E �� 7���� �3� �����* ������� �����

����(-&�����F$.����H I ���E�� 7���� �3� �����* ������� ������* ����

����(-&��F-.H I ��� ��E7����E�3� *���* �� �3� ������* ������� ����*�3�� �������� �3� ��������� ����

����(-&���?-H I ���E��E7����E�3� �*�� �� �3� ������* ����* �3���������� � ��������� ����

����(-&����)-H I ���E��E7���� E�������E������

This group is a collection of commands that cannot be classified in any othergroup.

����� '#",$%*�(�� �������%

B����� 1���������

�2��*/)! ;������ �3� ������ ���������� �� �3��������* �����* ��*�����

����E ��7���� �** ����� ���� "��� �����

A��� ;������E��*�!�����E��E7����E���E����*�

A��� �*��� �"��1 � � �� "��� �����

����H I ��� �� 7���� �"�"�

A���H I ��� �� 7���� "�"�

A��� ����� �"��

��� ��D������

*�(�� ������

Page 36: DG2030 Data Generator Programmer Manual

Command Groups

'#"/ DG2030 Programmer Manual

����� '#",$%*�(�� �������%7��98

B����� 1���������

�F��� ��7���� ���� ���� "��� �����

�F�#( ��7���� ���� ���� "��� �����

�FL%5 ����� ��!�� �� ���� � "��� �����

<���*&5 ����� �** ������� �� �����*��

>���-&H I �**�- �� ������ �3� ����� �� �3� �����* 3����� ������� ��������

�� ����� �� ��������� �!��� �3� ���� ��������

A��� ����� �� ��������� �!��� �3� ���� ��������

���GH I �����1E*��41 �� �*��4 *���* �����* ���� �3��������* �����*�

A�?�H I :������ �� ����� �3� ������� ���*��� �������

A�?� ����� -3��3 ����� ��� ��*������ ��� �3�� ������������

A?��H I ��� ��E7����E�-���� ������ �*��� �*��

A��� ����� �3�� ���� ��������

����"'( ����� -3��3�� �3� �������� �� ������*� ��������� ����� �� ��7����

A���H I ��� �� 7���� ��"�

����% ����� ����� �� ��7���� �����

A��2 ����� � �

���? ��� ����� �� ��7���� �����

A��� :������ �3� ��������� ����

A��� ;������ ��*������

���*)G *��4 .�**�-/ *���* �����* ���� �3� �������*�����*�

�?�"0- ����� �3� �*���� ���� ���� �-�� �

F��2*#-H I ���E��E7���� �3��� �� *�� ������ 3������

AK�� 0�*� ��� �** ������� ���* �** ���� �����������*���

Page 37: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual '#"0

����� 1����������

This subsection lists each command and query in the DG2030 Data Generatorcommand set alphabetically. Each command entry includes its commanddescription and command group, its related commands (if any), its syntax, andits arguments. Each entry also includes one or more usage examples.

This subsection fully spells out headers, mnemonics, and arguments with theminimal spelling shown in upper case. For example, to use the abbreviatedversion of the ���?.$52���!%'-## command, just type ���?2���.

The symbol ’(?)’ follows the command header of those commands that can beused as either a command or a query. The symbol ’?’ follows those commandsthat can only be a query. If neither symbol follows the command, it can only beused as a command.

�&�����(

The �2��*/)! command performs the same action that actuating the correspond-ing front-panel key, button, or knob would do.

DISPLAY

None

�2��*/)! �2������ � 2�����, � 2�����C � 2�����: � 2�����B �2�����9 � 2������ � ����� � ����, � ����C � ����: � ����B �������-'/ � ����J � ���� � �??�")$%"*' � ����"%5 � ����*& ��P��/%- � �?$&&*O � ��K�$&&*O � ��<�$&&*O � ���>%$&&*O � @��2�-S%� @��2�"(!% � ��� � ���J � ;��* � ��� � �K� � �>��- � <��� � <�F-� ��P � ��F-' � ���>% � ���- � ?���% � � � ����# � 2 � >; � � � F� � � @>; � �� � �F � � � �>; � �� � � � �� � < � ���-%- � ���-&� >���)*J5 � ���/$.�

Sending any of the arguments that are shown in Figure 2-2 is the equivalent ofoperating a front panel control. Which argument corresponds to which control isshown in Figure 2-2. Sending an argument corresponding to a front-panel buttonis the same as pressing that button once; if the argument sent corresponds to aknob, it is the same as rotating the knob clockwise or counterclockwise by 1 �25 ofa turn.

����

������� ������

�����

��������

Page 38: DG2030 Data Generator Programmer Manual

Command Descriptions

'#'4 DG2030 Programmer Manual

9

' & 2

?# <

,

%

$>

� A �

"

"��"�0F+�+J

40F+��+�J

�0F+��

6�+�� K

�)"���"�

���" &

���" 2

���" #

���" <

6��6� '� 6��6� >

�)"�����

���" '�"�

"���

�;;)������

��)���

)"������-��:0�����-

=�6 )���

=�6 ���3�

"5"����� ����

0������

�"J�L"�:0�L����

�6 �LM��J�ML��5

6�"M�C6M�0�"�

D"��

�����*

0D+�+J��� �;6���

�0D+ �

� ��

"

�=0D+��+�J

�")���

"����

��

��"

� �

;����-

�6C�����-

����� '#'$%�&�����( �������� �� ���������� �������

�2�����> ����?displays the same setup menu that is displayed by pressing the front-panel buttonSETUP in the MENU column on the front panel.

�����E

The ����E query dequeues all event codes and their corresponding eventmessages. Use the A��� query to make events available for dequeuing using����E query.

Other

A���, ����, A���, A��� , �F��� , �F�#( , �FL%5 , A���, A��2

����E

��������

����

������� ������

�����

Page 39: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#'"

None

�����F��-E-'% )*6-�� �-E-'% 0-##$(-D#-)*'6 0-##$(-� �D�-E-'%)*6-�� �-E-'% 0-##$(-#-)*'6 0-##$(-� �

����F might return the string����F ��C� �'6-S"'-6 !-$6-&D /'&-)*('"Q-6 )*00$'6 T ������F D:,+� UL/-&5 ������������

F��E

The *CAL? common command excutes self calibration on the data generator andreturns its result. This command is only used for clock calibration.

Other

None

A���

None

��-#/.%���-#/.%�������where ����� is one of following values:

VV+ terminated without error8++ clock calibration failed

A��� excutes the self caliblation and returns its result.

��������

��������

��������

����

������� ������

�����

��������

��������

��������

Page 40: DG2030 Data Generator Programmer Manual

Command Descriptions

'#'' DG2030 Programmer Manual

F��

The A��� common command clears SESR (Standard Event Status Register), theSBR (Status Byte Register) and the Event Queue, which are used in the datagenerator status and event reporting system. For more details, refer to Section 3Status and Events.

Other

����, A���, A��� , A�F��� , �F�#( , �FL%5 , A���, A��2

A���

A���clears the SESR, the SBR, and the Event Queue.

1���E

The ���� query returns the setting states related to the pattern data.

DATA

���?/%

����

���� might return �������;�C�8D2���@��<���R4,::+�2���@W���<����2���@W,��<��8��2���@WC��<�,88�2���@W:D������2��L�������<���R4,�����������D������L�������<���R4,��2���@W����+���+�+��<�2���@W,���+�+���+��<�2���@WC���+�+�+�+��<�2���@W:���+�+�+��������?��<���R4,�������������<�����9�9�9��<�����B�B�B��<�����:�:�:��<�����C�C�C��<�����,�,�,��<������������<�����+�+�+

����

������� ������

�����

��������

����

������� ������

�����

��������

Page 41: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#')

1���$&�*?$�11

The ����2���G��� command adds a block. This results in one new blockbeing defined in the block definition section.

DATA

����2���G��<"'-, ����2���G���-%-, ����2���G���-%-���, ����2���G���$0-, ����2���G��;-

����2���G��� �?*#"%"*'����$0-�

�?*#"%"*'�������where ����� is the start position of the added block.

��$0-���#%&"'(�where �#%&"'(� is the name of the added block.

����2���@��� B�,� 2���@� adds a block starting at address 512 named BLOCK1.

����

������� ������

�����

��������

��������

Page 42: DG2030 Data Generator Programmer Manual

Command Descriptions

'#'+ DG2030 Programmer Manual

1���$&�*?$1� �� 7E8

The ����2���G��<"'- command sets up the information for the whole blockdefinition section in ASCII. The ����2���G��<"'- query returns the wholeblock definition section.

DATA

����2���G���, ����2���G���-%-, ����2���G���-%-���, ����2���G���$0-, ����2���G��;-

����2���G��<"'- �2.*)G"'S*�����2���G��<"'-

�2.*)G"'S*���1.*)G!-$6-&��2.G6-S����<��2.G6-S�����<��2.G6-S��Arbitrary block data for the block definition

where,

�1.*)G!-$6-&���15%- )*/'% 6"("%��15%- )*/'%�

�2.G6-S����?*#"%"*'�����$0-�

��J*#"%"*'� is the block starting position specified in ASCII (Note that thestarting position of the first block must be zero), and ���$0-� is the blockname specified in ASCII.

��<�������� ."'- S--6 )*6- H6-) �+I�

�����2���G��<���� �2.*)G"'S*�where �2.*)G"'S*� is a data block in the same format as the argument.

����2���G��<"'- 4,C,+�2���@+��<�B�,�2���@���<��+,:�2���@,defines three blocks: BLOCK0, BLOCK1, and BLOCK2.

����

������� ������

�����

��������

��������

��������

Page 43: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#',

1���$&�*?$1�����

The ����2���G���-%- command deletes the specified block. Note that thefirst block cannot be deleted.

DATA

����2���G���, ����2���G��<"'-, ����2���G���-%-���, ����2���G���$0-, ����2���G��;-

����2���G���-%- ��$0-�

��$0-���#%&"'(�where �#%&"'(� is the name of the block to be deleted.

����2���@������ U2���@, deletes the block with the name BLOCK2.

1���$&�*?$1�����$���

The ����2���G���-%-��� command deletes all blocks. After this commandis executed, the whole memory area consists of one block with the name “NONAME”.

DATA

����2���G���, ����2���G��<"'-, ����2���G���-%-, ����2���G���$0-, ����2���G��;-

����2���G���-%-���

None

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

Page 44: DG2030 Data Generator Programmer Manual

Command Descriptions

'#'- DG2030 Programmer Manual

1���$&�*?$��5���

The ����2���G���$0- command changes the name of a data block.

DATA

����2���G���, ����2���G��<"'-, ����2���G���-%-, ����2���G���-%-���, ����2���G��;-

����2���G���$0- �<&*0T1.*)G'$0-����*T1.*)G'$0-�

�<&*0T1.*)G'$0-���#%&"'(�where �#%&"'(� is the name of the block before it is renamed.

��*T1.*)G'$0-���#%&"'(�where �#%&"'(� is the name of the block after it is renamed.

����2���@������ U2���@C � 2���@: changes the name of BLOCK3 to BLOCK4.

1���$&�*?$��G� 7E8

The ����2���G��;- command changes the size of a data block. The����2���G��;- query returns the size of the specified block.

DATA

����2���G���, ����2���G��<"'-, ����2���G���-%-, ����2���G���-%-���, ����2���G���$0-

����2���G��;- ��$0-����"Q-�����2���G��;- ��$0-�

��$0-���#%&"'(�where �#%&"'(� is a block name.

��"Q-�������where ����� is a new block size.

�����2���@��;�� ��$0-����"Q-�

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

Page 45: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#'.

����2���@��;� U2���@� �B�,changes the block size of the block BLOCK1 to 512.

1���$ �*=�$�11

The ��������J��� command adds a group.

DATA

��������J2��, ��������J��<"'-, ��������J���-%-, ��������J���-%-���, ��������J���� , ��������J���$0-

��������J��� ��$0-�����2�����2�

��$0-���#%&"'(�where �#%&"'(� is the name of the group to be added.

���2�������O!-&- ��2 "# %!- �*#% �"('"S")$'% 2"%where �����is the high order bit for the group.

���2�������where LSB is the Least Significant bitwhere �����is the low order bit for the group.

��������?��� U����?+� �C�+ adds a group that consists of 4 bits, DATA0 to DATA3, and has the nameGROUP01.

��������

����

������� ������

�����

��������

��������

Page 46: DG2030 Data Generator Programmer Manual

Command Descriptions

'#'/ DG2030 Programmer Manual

1���$ �*=�$&�� 7E8

The ��������J2�� command changes the bit configuration of a group. The��������J2�� query returns the set bit configuration.

DATA

��������J���, ��������J��<"'-, ��������J���-%-, ��������J���-%-���, ��������J���� , ��������J���$0-

��������J2�� ��$0-�����2�����2���������J2�� ��$0-�

��$0-���#%&"'(� where the name of the group to be changed or queried.

���2�������where �����is the high order bit for the group.

���2�������where �����is the low order bit for the group.

���������?2��� ��$0-�����2�����2�

��������?2�� U����?+, ���: changes the bit configuration for the group named GROUP02 to be DATA4 toDATA7.

����

������� ������

�����

��������

��������

��������

Page 47: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#'0

1���$ �*=�$1� �� 7E8

The ��������J��<"'- command sets up the information for the whole groupdefinition section in ASCII. �!- ��������J��<"'- query returns theinformation for the whole group definition section.

DATA

��������J���, ��������J2��, ��������J���-%-, ��������J���-%-���, ��������J���� , ��������J���$0-

��������J��<"'- ��&*/J1.*)G���������J��<"'-

��&*/J1.*)G���1.*)G!-$6-&���&*/J����<���&*/J�����<���&*/J��Arbitrary block data for the group definition

where,

�1.*)G!-$6-&���15%- )*/'% 6"("%��15%- )*/'%�

��&*/J�����$0-������2������2�

The ���$0-�, ����2�, and ����2� fields are ASCII character strings thatspecify the following information.���$0-� group name����2� group’s high order bit����2� group’s low order bit

��<�������� ."'- S--6 )*6- H�+I�

���������?��<���� ��&*/J1.*)G�where ��&*/J1.*)G� is a data block with the same format as the argument.

��������J��<"'-4,C8����?+����+��<�����?+,����8��<�����?+C��B��, defines the three groups GROUP01, GROUP02, and GROUP03.

����

������� ������

�����

��������

��������

��������

Page 48: DG2030 Data Generator Programmer Manual

Command Descriptions

'#)4 DG2030 Programmer Manual

1���$ �*=�$1�����

The ��������J���-%- command deletes the specified group.

DATA

��������J���, ��������J2��, ��������J��<"'-, ��������J���-%-���, ��������J���� , ��������J���$0-

��������J���-%- ��$0-�

��$0-���#%&"'(�where �#%&"'(� is the name of the group to delete.

��������?������ U����?+, deletes the group with the name GROUP02.

1���$ �*=�$1�����$���

The ��������J���-%-��� command deletes all group definitions.

DATA

��������J���, ��������J2��, ��������J��<"'-, ��������J��7�-%-, ��������J���� , ��������J���$0-

��������J���-%-���

None

1���$ �*=�$5�!�E

The ��������J���� query returns the name of the group that includes thespecified bit.

DATA

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

����

Page 49: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#)"

��������J���, ��������J2��, ��������J��<"'-, ��������J��7�-%-, ��������J���-%-���, ��������J���$0-

��������J���� �2"%�

�2"%�������where ����� is the number of the bit to be queried (0 to 7).

���������?����� �2"%����$0-�where

�2"%������� a bit number (0 to 37)��$0-���#%&"'(� the group name

��������J���� �9�might return ��������?���� 9� ����?+, , which indicates that the nameof the group that includes the DATA6 bit is GROUP02.

1���$ �*=�$��5���

The ��������J���$0- command changes the name of a group.

DATA

��������J���, ��������J2��, ��������J��<"'-, ��������J��7�-%-, ��������J���-%-���, ��������J����

��������J���$0- �<&*0T(&*/J'$0-����*T(&*/J'$0-�

�<&*0T(&*/J'$0-���#%&"'(�where �#%&"'(� is the name of the group before it is renamed.

��*T(&*/J'$0-���#%&"'(�where �#%&"'(� is the name of the group after it is renamed.

��������?������ U����?+C � ����?+: changes the name of the group GROUP03 to be GROUP04.

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

��������

Page 50: DG2030 Data Generator Programmer Manual

Command Descriptions

'#)' DG2030 Programmer Manual

1���$!��G� 7E8

The �������;- command sets the bit pattern section memory area size. The�������;- query returns the bit pattern section memory area setting.

DATA

None

�������;- ��-0*&5 �"Q-��������;-

��-0*&5 �"Q-�������where ����� is the number that expresses the memory size (in words).

��������;�� ��-0*&5 �"Q-�

1���$������$&�� 7E8

The ����?���-&'2�� command sets the data memory bit pattern section. Datais given in bit units. The ����?���-&'2�� query returns the contents of thedata memory bit pattern section.

DATA

����?���-&'�K����

����?���-&'2�� �2"% ?*#"%"*'����66&-##����-'(%!����$%$�����?���-&'2�� �2"% ?*#"%"*'����66&-##����-'(%!�

����

������� ������

�����

��������

��������

����

������� ������

�����

Page 51: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#))

�2"% ?*#"%"*'������� bit position (0 to 7)��66&-##������� start address (0 to 262143)��-'(%!������� data length (1 to 262144)��$%$���1.*)G� arbitrary block data for the bit pattern section

Example where the data length is 128:

# 3 1 2 8 <bit 1> <bit 2> ... <bit 128>

<bit N> ::= {1 | 0}���!�� �� ������

���!�� �� !���

The value of the data bit at the specified address is specified with the ASCIIcharacter for 0 or 1. Data bits for the specified data length are stored inaddress order, with all bits expressed similarly in ASCII. The number ofbytes in the block header will be equal to the length of the specified data.

�����?������2��� �2"% ?*#"%"*'����66&-##����-'(%!����$%$�

��������

��������

Page 52: DG2030 Data Generator Programmer Manual

Command Descriptions

'#)+ DG2030 Programmer Manual

1���$������H$:*�1I 7E8

The ����?���-&'�K���� command sets the data memory bit pattern section.The data is given in word units. The ����?���-&'K��� query returns thecontents of the data memory bit pattern section.

DATA

����?���-&'2��

����?���-&'�K���� ��66&-##����-'(%!����$%$�����?���-&'�K���� ��66&-##����-'(%!�

��66&-##�������where ����� is a start address (0 to 262143)

��-'(%!������� data length (1 to 262144)��$%$���1.*)G� arbitrary block data for the bit pattern section

Example where the data length is 50:

# 2 5 0 <byte 1> <byte 2> ... <byte 50>

<byte 1>

bit 7–0

���!�� �� ������

���!�� �� !����

Each word (8 bits) of the bit pattern data is expressed as each byte . Themost significant bit (MSB) of each byte is correspond to bit 7. The datablock is formed by iterating this method for each word in order starting withthe start address.

�����?������K���� ��66&-##����-'(%!����$%$�

����

������� ������

�����

��������

��������

Page 53: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#),

1���$��6����$�11

The ������L/-')-��� command adds a sequence step.

DATA

������L/-')-��<"'-, ������L/-')-���-%-, ������L/-')-��7�-%-���

������L/-')-��� ��"'-�����$0-����-J-$%����*���K$"%����M/0J�����**J��

��"'-��������where ����� is a sequence step number.

��$0-���#%&"'(�where �#%&"'(� is a block name (surrounded in double (”) or single (’) quotes).

��-J-$%�������where ����� is a repeat count (1 to 65536).

��*�������where ����� is a event jump destination line number.

�K$"%������ � �<< � � � +� trigger wait on/off state

�M/0J������ � �<< � � � +� event jump on/off state

��**J������ � �<< � � � +� infinite loop on/off

������L�������� :� 2���@C ��9�+�+���� adds a sequence step that consists of the block named BLOCK3 at the sequenceline number 4 position.

When this sequence is executed in enhanced mode, BLOCK3 will be executedrepeatedly since the infinite loop setting is set on. However, since event jump isalso set on, the instrument will jump to sequence line number 0 if an externalevent occurs. In run modes other than enhanced mode, BLOCK3 will beexecuted 16 times and then control will switch to the next line number.

����

������� ������

�����

��������

��������

Page 54: DG2030 Data Generator Programmer Manual

Command Descriptions

'#)- DG2030 Programmer Manual

1���$��6����$1� �� 7E8

The ������L/-')-��<"'- command sets up all of the sequence definitionsection information in ASCII. The ������L/-')-��<"'- query returns all ofthe sequence definition section information.

DATA

������L/-')-���, ������L/-')-���-%-, ������L/-')-���-%-���

������L/-')-��<"'- ��-N/-')- 2.*)G�������L/-')-��<"'-

��-N/-')- 2.*)G���1.*)G!-$6-&���%-J����<���%-J�����<���%-J��Arbitrary block data for the sequence definition

where,

�1.*)G!-$6-&���15%- )*/'% 6"("%��15%- )*/'%�

��%-J�����$0-�����-J-$%�����*����K$"%�����M/0J������**J��

The items in ��%-J� are ASCII character strings that express the followinginformation.���$0-� the block name (with no quotation marks)���-J-$%� repeat count (1 to 65536)���*� event jump destination line number��K$"%�� trigger wait on/off state (��� � ��:ON, ��<< � +�:OFF)��M/0J�� event jump on/off state (��� � ��ON, ��<< � +�:OFF)���**J�� infinite loop on/off (��� � ��:ON, ��<< � +�:OFF)

��<�������� ."'- S--6 )*6- H�+I�

�������L�������<���� ��-N/-')- 2.*)G�where ��-N/-')- 2.*)G� is a data block with the same format as the argument.However, note that rather than the �� and �<< keywords, only 0 and 1 are usedfor the ��K$"%��, ��M/0J��, and ���**J�� items.

������L/-')-��<"'- 4,CB2���@���9�+���+�+��<�2���@,�C,�+�+���� defines a two step sequence that consists of the two blocks BLOCK1 andBLOCK2.

����

������� ������

�����

��������

��������

��������

Page 55: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#).

1���$��6����$1�����

The ������L/-')-���-%- command deletes the specified sequence step.

DATA

������L/-')-���, ������L/-')-��<"'-, ������L/-')-���-%-���

������L/-')-���-%- ��"'- �/01-&�

��"'- �/01-&�������where ����� is the line number of the sequence step to be deleted.

������L����������� C deletes the line 3 sequence step.

1���$��6����$1�����$���

The ������L/-')-���-%-��� command deletes all sequence definitions.

DATA

������L/-')-���, ������L/-')-��<"'-, ������L/-')-���-%-

������L/-')-���-%-���

None

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

Page 56: DG2030 Data Generator Programmer Manual

Command Descriptions

'#)/ DG2030 Programmer Manual

1���$��6����$�JK 7E8

The ������L/-')-�FM command sets the sequence step event jump to on oroff. The ������L/-')-�FM query returns the sequence step event jumpon/off state.

DATA

������L/-')-�FM��, ������L/-')-���?, ������L/-')-��?-$%, ������L/-')-�K���

������L/-')-�FM ��"'- �/01-&����� � �<< � � � +�������L/-')-�FM ��"'- �/01-&�

��"'- �/01-&�������where ����� is the line number of the sequence step to be set.

�� *& �sets the event jump to on.

�<< *& +sets the event jump to off.

�������L������FM� ��"'- �/01-&���� � +�

������L������FM 8��� sets the event jump state for the line 8 sequence step to on.

����

������� ������

�����

��������

��������

��������

Page 57: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#)0

1���$��6����$�JK�* 7E8

The ������L/-')-�FM�� command sets the sequence step event jumpdestination. The ������L/-')-�FM�� query returns the event jumpdestination set for the sequence step.

DATA

������L/-')-�FM, ������L/-')-���?, ������L/-')-��?-$%, ������L/-')-�K���

������L/-')-�FM�� ��"'- �/01-&����$&(-%�������L/-')-�FM�� ��"'- �/01-&�

��"'- �/01-&�������where ����� is the line number of the sequence step to be set.

��$&(-%�������where ����� is the line number of the jump destination sequence step.

�������L������FM��� ��"'- �/01-&����$&(-%�

������L������FM�� B�+ sets the line 5 sequence step event jump destination to line 0.

����

������� ������

�����

��������

��������

��������

Page 58: DG2030 Data Generator Programmer Manual

Command Descriptions

'#+4 DG2030 Programmer Manual

1���$��6����$�**� 7E8

The ������L/-')-���? command sets the sequence step infinite loop state toon or off. The ������L/-')-���? query returns the sequence step infiniteloop on/off state.

DATA

������L/-')-�FM, ������L/-')-�FM��, ������L/-')-��?-$%, ������L/-')-�K���

������L/-')-���? ��"'- �/01-&����� � �<< � � � +�������L/-')-���? ��"'- �/01-&�

��"'- �/01-&�������where ����� is the line number of the sequence step to be set.

�� *& �sets the infinite loop state to on.

�<< *& +sets the infinite loop state to off.

�������L��������?� ��"'- �/01-&���� � +�

������L��������? ���<< sets the infinite loop state for the line 9 sequence step to off.

1���$��6����$������ 7E8

The ������L/-')-��?-$% command sets the sequence step repeat count. The������L/-')-��?-$% query returns the repeat count set for the sequencestep.

DATA

������L/-')-�FM, ������L/-')-�FM��, ������L/-')-���?, ������L/-')-�K���

����

������� ������

�����

��������

��������

��������

����

������� ������

Page 59: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#+"

������L/-')-��?-$% ��"'- �/01-&����"0-#�������L/-')-��?-$% ��"'- �/01-&�

��"'- �/01-&�������where ����� is the line number of the sequence step to be set.

��"0-#�������where ����� is a repeat count (1 to 65536).

�������L�������?���� ��"'- �/01-&����"0-#�

������L�������?��� B�8 sets the line 5 sequence step repeat count to 8.

1���$��6����$�:��� 7E8

The ������L/-')-�K��� command sets the sequence step trigger wait state toon or off. The ������L/-')-�K��� query returns the sequence step triggerwait on/off state.

DATA

������L/-')-�FM, ������L/-')-�FM��, ������L/-')-���?, ������L/-')-��?-$%

������L/-')-�K��� ��"'- �/01-&����� � �<< � � � +�������L/-')-�K��� ��"'- �/01-&�

��"'- �/01-&�������where ����� is the line number of the sequence step to be set.

�� *& �sets the trigger wait state to on.

�<< *& +sets the trigger wait state to off.

�������L������K���� ��"'- �/01-&���� � +�

������L������K��� B��� sets the line 5 sequence step trigger wait state to on.

�����

��������

��������

��������

����

������� ������

�����

��������

��������

��������

Page 60: DG2030 Data Generator Programmer Manual

Command Descriptions

'#+' DG2030 Programmer Manual

1���$�=&��3����$�11

The ������2�-N/-')-��� command adds a sub sequence step.

DATA

������2�-N/-')-��<"'-� ������2�-N/-')-���-%-�������2�-N/-')-���-%-���

������2�-N/-')-��� ��'$0-�� ��"'-��� ��$0-�� ��-J-$%�

��'$0-����%&"'(�where <string> is a sub sequence name (surrounded in double (”) or single (’)quotes).

��"'-��������where ����� is a sub sequence step number.

��$0-����%&"'(�where �#%&"'(� is a block name (surrounded in double (”) or single (’) quotes).

��-J-$%�������where ����� is a repeat count (1 to 65536).

������2��L�������� U��2� �, 2���@C ��+adds a sub sequence step that consists of the block named BLOCK3 at the subsequence line number 2 position in the sub sequence named SUB1.

1���$�=&��3����$����

The ������2�-N/-')-����& command clears all sub sequence definitions.

DATA

������2�-N/-')-���� ������2�-N/-')-��<"'-�������2�-N/-')-���-%-� ������2�-N/-')-���-%-���

������2�-N/-')-���-%-����&

None

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

Page 61: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#+)

1���$�=&��3����$1� �� 7E8

The ������2�-N/-')-��<"'- command sets up all of the sub sequencedefinition section information in ASCII. The ������2�N/-')-��<"'- queryreturns all of the sub sequence definition section information.

DATA

������2�-N/-')-���� ������2�-N/-')-����&�������2�-N/-')-���-%-� ������2�-N/-')-���-%-���

������2�-N/-')-��<"'- ��/1#-N 2.*)G�������2�-N/-')-��<"'-

��/1#-N 2.*)G���1.*)G!-$67-&����$0-����%-J�����%-J�����<����$0-����%-J������%-J���Arbitrary block data for the sequence definition

where,

��%-J�����$0-�����-J-$%�

The items in ��%-J� are ASCII character strings that express the followinginformation.���$0-� the sub sequence name (with no quotation marks)���$0-� the block name (with no quotation marks)���-J-$%� repeat count (1 to 65536)

��<�������� ."'- S--6 )*6- H�+I�

�������2��L�������<���� ��/1#-N 2.*)G�where ��/1#-N 2.*)G� is a data block with the same format as the argument.

������2��L�������<��� 4,CC��2��2���9�2,�C,��<���2,�2C�,�2:�Cdefines a two step sub sequence that consists of the two sub sequences SUB1 andSUB2.

����

������� ������

�����

��������

��������

��������

Page 62: DG2030 Data Generator Programmer Manual

Command Descriptions

'#++ DG2030 Programmer Manual

1���$�=&��3����$1�����

The ������2�-N/-')-���-%- command deletes the specified sub sequencestep.

DATA

������2�-N/-')-���, ������2�-N/-')-����&,������2�-N/-')-��<"'-� ������2�-N/-')-���-%-���

������2�-N/-')-���-%- ���$0-����"'- �/01-&�

���$0-����%&"'(�where <String> is a sub sequence name (surrounded in double (”) or single (’)quotes).

��"'- �/01-&�������where ����� is the line number of the sequence step to be deleted.

������2��L����������� U��2, , 7deletes the line 7 sub sequence step named SUB2.

1���$�=&��3����$1�����$���

The ������2�-N/-')-���-%-��� command deletes the specified subsequence definitions.

DATA

������2�-N/-')-���, ������2�-N/-')-����&�������2�-N/-')-��<"'-, ������2�-N/-')-���-%-

������2�-N/-')-���-%-��� ���$0-�

���$0-����%&"'(�where <String> is a sub sequence name (surrounded in double (”) or single (’)quotes).

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

Page 63: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#+,

������2��L�������������� U��2� deletes the sub sequence definition named SUB1.

1���$�=&��3����$������ 7E8

The ������2�-N/-')-��?-$% command sets the sub sequence step repeatcount. The ������2�-N/-')-��?-$% query returns the repeat count set forthe sub sequence step.

DATA

�*'-

������2�-N/-')-��?-$% ���$0-����"'- �/01-&����"0-#�������2�-N/-')-��?-$% ���$0-����"'- �/01-&�

���$0-����%&"'(�where ��%&"'(� is a sub sequence name (surrounded in double (”) or single (’)quotes).

��"'- �/01-&�������where ����� is the line number of the sequence step to be set.

��"0-#�������where ����� is a repeat count (1 to 65536).

�������2��L�������?���� ���$0-����"'- �/01-&����"0-#�

������2��L�������?��� U��2� �B�8 sets the line 5 sequence step repeat count in the sub sequence named SUB1 to 8.

��������

����

������� ������

�����

��������

��������

��������

Page 64: DG2030 Data Generator Programmer Manual

Command Descriptions

'#+- DG2030 Programmer Manual

1���$=�1���

The �����?�$%- command transfers the contents of data memory to patterngeneration memory so that the output reflects the most recent data. Thiscommand is only valid when the mode is set to manual mode. The processingperformed by this command is executed automatically if any data changes whenthe instrument is in automatic mode.

DATA

None

�����?�$%-

None

1�&��E

The ��2/( query returns all current settings for the remote command debuggingfunction.

This query is equivalent to the ��2/(���*J query.

DEBUG

��2/(���*J , ��2/(���*J����5����, ��2/(���*J����-

��2/(

None

See Examples

��2�� might return ��2������?����� +; ��������� +,

����

������� ������

�����

��������

����

������� ������

�����

��������

��������

��������

Page 65: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#+.

1�&��$�5*��E

The ��2/(���*J query returns all current settings for the remote commanddebugging function.

This query is equivalent to the ��2/( query.

DEBUG

��2/( , ��2/(���*J����5����, ��2/(���*J����-

��2/(���*J

None

See Examples

��2������? might return ��2������?����� +; ��������� +,

����

������� ������

�����

��������

��������

��������

Page 66: DG2030 Data Generator Programmer Manual

Command Descriptions

'#+/ DG2030 Programmer Manual

1�&��$�5*��$1����E

The ��2/(���*J����5 query returns the display time for commands in asequence of commands connected by semicolons.

This query is equivalent to the DEBug:SNOop:DELAy:TIME? query.

DEBUG

��2/( , ��2/(���*J , ��2/(���*J����5���� , ��2/(���*J����-

��2/(���*J����5

None

���2������?��������-.$5 �"0-�where ��-.$5 �"0-�����,�

��2������?����� might return ��2������?��������� +,

����

������� ������

�����

��������

��������

��������

Page 67: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#+0

1�&��$�5*��$1����$��!� 7E8

The ��2/(���*J����5���� command sets the display time for commands ina sequence of commands that are connected by semicolons.

The ��2/(���*J����5���� query returns the display time for commands ina sequence of commands connected by semicolons.

DEBUG

��2/( , ��2/(���*J , ��2/(���*J����5 , ��2/(���*J����-

��2/(���*J����5���� ��"0-���2/(���*J����5����

��"0-�����,���/'"%��where ���,� combined with ��/'"%�� specifies a time in the range 0.0 s to10.0 s in steps of 0.1 s, and ��/'"%����#�0#��#�, for seconds, milliseconds,or microseconds.

��2������?��������� +Bsets the command display time to 0.5 seconds.

����

������� ������

�����

��������

��������

Page 68: DG2030 Data Generator Programmer Manual

Command Descriptions

'#,4 DG2030 Programmer Manual

1�&��$�5*��$����� 7E8

The ��2/(���*J����- command sets and clears the remote commanddebugging function.

The ��2/(���*J����- query returns the currently specified state of theremote command debugging function.

The debugging function displays messages input from the remote interface in theCRT screen message area. If commands are connected by semicolons, eachmessage is displayed for the time specified with the ��2/(���*J����5����command.

The display format is as follows.

�*'%&*. )*6-# — U�)*6- 6-)"0$. 6"#J.$5� , e.g. �< is displayed asU��+� .

�.J!$'/0-&")# $'6 #501*.# — U�)*6- ����� 6"#J.$5� , e.g., U� isdisplayed as U� .

�-##$(- %-&0"'$%"*' — U�?���

�'%-&S$)- 0-##$(-# — U����� and U����� . Others are displayed asU�)*6- 6-)"0$. 6"#J.$5� .

2.*)G 6$%$ — U4+

�'5 6$%$ *%!-& %!$' *'- *S %!- $1*E- — U�)*6- 6-)"0$. 6"#J.$5� ,e.g. a code value of 80 (hexadecimal) would be displayed as ��,8�.

DEBUG

��2/( , ��2/(���*J , ��2/(���*J����5 , ��2/(���*J����

��2/(���*J����- ��� � �<< � ��������2/(���*J����-

�� *& '*'Q-&* E$./-enables the debugging function.

�<< *& Q-&* E$./-clears the debugging function.

����

������� ������

�����

��������

Page 69: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#,"

� the debugging function is currently set.+ the debugging function is currently cleared.

��2������?����� ��enables the debugging function.

1��� 7E8

The ���� command sets the bits of the DESER (Device Event Status EnableRegister) used in the status and event reporting system of the data generator. The���� query returns the contents of the DESER. Refer to Section 3 Status andEvents for more information about ����.

The power-on default for the DESER is to set all bits to 1 if the power-on statusflag is TRUE. If this flag is set to FALSE, the DESER maintains its currentvalue through a power cycle.

Other

A���, A���, A��� , �F��� , �F�#( , �FL%5 , A���, A��2

���� �2"% F$./-�����

�2"% F$./-�������where ����� is a decimal integer, which must range from 0 to 255, that sets theDESER bits to its binary equivalent.

���� ���sets the DESER to 177 (binary 10110001), which sets the PON, CME, EXE andOPC bits.

���� might return ���� ��9, which indicates that the DESER contains the binarynumber 10110000.

��������

��������

����

������� ������

�����

��������

��������

Page 70: DG2030 Data Generator Programmer Manual

Command Descriptions

'#,' DG2030 Programmer Manual

1�� �����E

The ����'*#%") query returns the selected self-test routine(s), runs the routine,and returns the results.

DIAGNOSTIC

����'*#%")���-)%, ����'*#%")����-, ����'*#%")����.%

����'*#%")

None

������������������ ��-.ST%-#% �*/%"'-�D �����������-#/.%�����-7#/.%����-.S7%-#% �*/%"'-�� �.$1-.�where �.$1-.� is one of following routines:

��� all routines�?� CPU unit check routine���?.$5 display unit check routine<?��-. front panel control unit check routine����G clock unit check routine����(-& trigger unit test routine?���*&5 pattern memory check routine����*&5 sequence memory check routine

and where ��-#/.%������� is one of following responses:

VV+ terminated without error�++ detected an error in the CPU unit,++ detected an error in the display unitC++ detected an error in the front panel unit:++ detected an error in the clock unitB++ detected an error in the trigger unit9++ detected an error in the sequence memory�++ detected an error in the pattern memory

����. The DG2030 Data Generator does not respond to any commands orqueries issued during Self Test.

����

������� ������

�����

��������

��������

Page 71: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#,)

���������� might return ���������������� ���D������ +

1�� �����$���=��E

The ����'*#%")����.% query returns the results of self-test execution.

DIAGNOSTIC

����'*#%")���-)%, ����'*#%")����-

����'*#%")����.%

None

������������������-#/.%�����-#/.%����-#/.%�������where ����� is one of following values:

VV+ terminated without error�++ detected an error in the CPU unit,++ detected an error in the display unitC++ detected an error in the front panel unit:++ detected an error in the clock unitB++ detected an error in the trigger unit9++ detected an error in the sequence memory�++ detected an error in the pattern memory

���������������� might return ���������������� ,++

��������

����

������� ������

�����

��������

��������

��������

Page 72: DG2030 Data Generator Programmer Manual

Command Descriptions

'#,+ DG2030 Programmer Manual

1�� �����$������ 7E8

The ����'*#%")���-)% command selects the self test routine. The ����'*#7%")���-)% query returns the currently selected routine. The ����'*#7%")����- command executes the routine.

DIAGNOSTIC

����'*#%")����-, ����'*#%")�����%

����'*#%")���-)% � ��� � �?� � ���?.$5 � <?��-. � ����G �����(-& � ����*&5 � ?���*&5 �

����'*#%")���-)%

��� checks all routines that follow�?� checks the CPU unit���?.$5 checks the display unit<?��-. checks the front panel control unit����G checks the clock unit����(-& checks the trigger unit����*&5 checks the sequence memory?���*&5 checks the pattern memory

���������������� �?� D ����� �P�����executes the CPU self-test routine.

1�� �����$�����

The ����'*#%")����- command executes the self-test routine(s) selected withthe ����'*#%")���-)% command. If an error is detected during execution, theroutine that detected the error terminates. If all of the self-test routines areselected using the ����'*#%")���-)% command, self-testing continues withexecution of the next self-test routine.

DIAGNOSTIC

����'*#%")���-)%, ����'*#%")����.%

����'*#%")����- �P��/%-

����

������� ������

�����

��������

��������

����

������� ������

�����

Page 73: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#,,

�P��/%-Performs the self-test using the selected routine.

���������������� ��� ; ����� �P����� ; ������ executes all of the self-test routines. After all self-test routines finish, the resultsof the self tests are returned.

1������E

The ���?.$5 query returns all the settings set using the display commands.

DISPLAY

None

���?.$5

None

Returns the settings as a sequence of commands, suitable for sending as setcommands later to restore a setup. See Examples.

���?��� might return ���?���2���>����� +�D����@ +D������ �D���2���D�������� ����?D����� �D���?���K����K��P����� U U

��������

��������

����

������� ������

�����

��������

��������

��������

Page 74: DG2030 Data Generator Programmer Manual

Command Descriptions

'#,- DG2030 Programmer Manual

1������$&�� (���� 7E8

The ���?.$52���!%'-## command adjusts the brightness of the screen; the���?.$52���!%'-## query returns the current brightness setting.

DISPLAY

���?.$5

���?.$52���!%'-## �F$./-����?.$52���!%'-##

�F$./-�����S�where ���S� is a real number ranging from 0 to 1.

���?���2���>����� +� sets screen brightness to 70% of maximum intensity.

1������$�*? 7E8

The ���?.$5����G command sets whether or not the data and time aredisplayed.

The ���?.$5����G query returns whether or not the data and time aredisplayed.

DISPLAY

���?.$5

���?.$5����G ��� � �<< � � � +����?.$5����G

�� *& �sets the data generator to display the date and time.

�<< *& +sets the data generator to not display the date and time.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

Page 75: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#,.

� Date and time is currently displayed.+ Date and time is currently not displayed.

���?�������@ �� sets the data generator to display the date and time.

1������$1�!��� 7E8

The ���?.$5���0-& command sets whether or not the screen dimmer functionoperates. The ���?.$5���0-& query returns the on/off state of the screendimmer function. When the dimmer function is on, if no front panel controls areused for about 10 minutes, the screen brightness is lowered automatically.

DISPLAY

���?.$5

���?.$5���0-& ��� � �<< � � � +����?.$5���0-&

�� *& �enables the dimmer function.

�<< *& +clears the dimmer function.

����?���������� �� � +�

���?��������� �� turns the dimmer function on.

��������

��������

����

������� ������

�����

��������

��������

��������

Page 76: DG2030 Data Generator Programmer Manual

Command Descriptions

'#,/ DG2030 Programmer Manual

1������$�5�&�� 7E8

The ���?.$5���2.- command turns the display on or off. When security isturned on, once the display is set to off, it cannot be turned on again. The���?.$5���2.- query returns the on/off state of the display.

DISPLAY

���?.$5 , ���?.$5��������-

���?.$5���2.- ��� � �<< � � � +����?.$5���2.-

�� *& �turns the display on.

�<< *& +turns the display off.

����?������2��� �� � +�

���?������2�� �<< turns the display off.

1������$!�5=E

The ���?.$5���� query returns the type and display state of the selectedmenu.

DISPLAY

���?.$5 , ���?.$5����������, ���?.$5��������

���?.$5����

None

����?������������ �����? � ���� � �??�������� � ����7����D������� �� � +�

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

��������

Page 77: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#,0

���?.$5���� might return ���?����������� ����?D����� �

1������$!�5=H$5�!�I

The ���?.$5���������� command selects the menu to be displayed on thescreen.

DISPLAY

���?.$5 , ���?.$5���� , ���?.$5��������

���?.$5���������� �����J � ���� � �??�")$%"*' � ����"%5�

����J displays the setup menu���� displays the edit menu�??�")$%"*' displays the application menu����"%5 displays the utility menu

���?����������� ������� selects the UTILITY menu.

��������

����

������� ������

�����

��������

��������

Page 78: DG2030 Data Generator Programmer Manual

Command Descriptions

'#-4 DG2030 Programmer Manual

1������$!�5=$5�!�E

The ���?.$5�������� query returns the type of the selected menu.

DISPLAY

���?.$5 , ���?.$5���� , ���?.$5����������

���?.$5��������

None

����?������������ �����? � ���� � �??�������� � ��������

���?.$5�������� might return ���?����������� ����

1������$!�5=$����� 7E8

The ���?.$5��������- command sets whether or not menus are displayed onthe screen. �!- ���?.$5��������� query returns whether or not menus aredisplayed on the screen. This command is equivalent to the DISPlay:ENABlecommand.

DISPLAY

���?.$5 , ���?.$5���2.-, ���?.$5���� , ���?.$5����������

���?.$5��������- ��� � �<< � � � +����?.$5��������-

�� *& � Menus are displayed.�<< *& + Menus are not displayed.

����?������������� �� � +�

���?������������ �� sets the instrument to display menus on the screen.

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

��������

��������

Page 79: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#-"

1������H$:�51�2I$��L�$����

The ���?.$5�K���*O���P����$& command clears the message display areaon the screen.

DISPLAY

���?.$5 , ���?.$5�K���*O���P�������

���?.$5�K���*O���P����$&

None

���?���K����K��P������ clears the message display area.

����

������� ������

�����

��������

��������

Page 80: DG2030 Data Generator Programmer Manual

Command Descriptions

'#-' DG2030 Programmer Manual

1������H$:�51�2I$��L�H$1���I 7E8

The ���?.$5�K���*O���P������� command sends a message to bedisplayed in the screen message display area. The sent message is displayedimmediately. The ���?.$5�K���*O���P������� query returns the contentsof the input screen message.

����. The contents of the message display area scrolls automatically. To fullyupdate the display contents, first clear the message display area using theDISPlay[:WINDow]:TEXT:CLEar command.

DISPLAY

���?.$5 , ���?.$5�K���*O���P����$&

���?.$5�K���*O���P������� ��-##$(-����?.$5�K���*O���P�������

��-##$(-���#%&"'(� where �#%&"'(� is a message character string.

����?���K����K��P������ ��-##$(-�

���?���K����K��P����� U�2�� sends the text “ABCD” to be displayed in the message display area.

F��� 7E8

The A��� common command sets the bits of the ESER (Event Status EnableRegister) used in the status and events reporting system of the data generator.The A��� 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 toreset all bits to zero. If this flag is set to FALSE, the ESER bits do not changevalue during the power-on cycle.

Other

����

������� ������

�����

��������

��������

��������

����

Page 81: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#-)

A���, ����, A��� , �F��� , �F�#( , �FL%5 , A���, A��2

A��� �2"% F$./-�A���

�2"% F$./-�������where ����� is a decimal integer that ranges from 0 to 255. The ESER bits willbe set to the binary equivalent of the decimal integer sent.

A��� ���sets the ESER to ��� (binary 10110001), which sets the PON, CME, EXE andOPC bits.

A��� might return ��9�which indicates that the ESER contains the binary number11010000.

F���E

The A��� common query returns the contents of SESR (Standard Event StatusRegister) used in the status and events reporting system. Refer to Section 3Status and Events for more information about A��� *& ����.

Other

A���, ����, A��� , �F��� , �F�#( , �FL%5 , A���, A��2

A���

None

A��� might return �8�, which indicates that the SESR contains the binary number10110101.

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

Page 82: DG2030 Data Generator Programmer Manual

Command Descriptions

'#-+ DG2030 Programmer Manual

�J�5�E

The �F��� query dequeues the event code of the event that has been in theEvent Queue the longest out of all available events. Use the A��� query tomake the events available for dequeuing using �F��� . Refer to Section 3 Statusand Events.

Other

A���, ����, A���, A��� , �F�#( , �FL%5 , A���, A��2

�F���

None

�F��� might return �F��� ��C

�J!��E

The �F�#( query dequeues the event code and event message of the event thathas been in the Event Queue the longest out of all available events. Use theA��� query to make the events available for dequeuing using �F�#( For moredetails, refer to Section 3 Status and Events.

Other

A���, ����, A���, A��� , �F��� , �FL%5 , A���, A��2

�F�#(

None

�F��� might return �F��� :,+� L/-&5 ������������

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

Page 83: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#-,

�J6��E

The �FL%5 query returns the number of events currently in the Event Queue. Ifno event is being queued, 0 is returned.

Other

A���, ����, A���, A���, �F�#( , �F��� , A���, A��2

�FL%5

None

�FL%5 might return �FL�� B

�����

The <���*&5 command resets the data generator to its factory default settingsand purges all stored settings. (See Appendix D, page D–1, for a list of thefactory settings.)

Other

A���, ����&-

<���*&5

None

<������resets the data generator to its factory default settings.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

Page 84: DG2030 Data Generator Programmer Manual

Command Descriptions

'#-- DG2030 Programmer Manual

B*��E

The >��?5 query returns the set image data format and output port for hardcopyoutput.

HARDCOPY

>��?5<���$%, >��?5?���

>��?5

None

�>��?�<������ �2�? � �?��� � �?����� � �>��@M�� � ��<<�D�?��������@ � �?�2 � ��,C,��where

2�? the Windows monochrome file format.

�?��' the format used by 9-pin and 24-pin dot matrix printers in ESC/P graphics mode.

�?��*'* the encapsulated Postscript format monochrome image file format.

�>��GX-% the format used by HP inkjet printers.

��<< the TIFF format.

>��?� might return >��?�<����� ��<< D ?��� ���@

In this case the instrument outputs hardcopy data to file on the floppy disk in theTIFF format.

����

������� ������

�����

��������

��������

��������

Page 85: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#-.

B*��$�&*��

The >��?5�2��% command aborts hardcopy output.

HARDCOPY

>��?5����%

>��?5�2��%

None

>��?��2��� aborts hardcopy output.

B*��$1���E

The >��?5���� query outputs the hard copy data to the output queue.However, note that this command has no effect on (and is not affected by) thehard copy output port setting.

HARDCOPY

>��?5?���

>��?5����

None

�>��?������ ��0$(-�where

��0$(-���1.*)G� the hardcopy image data block

>��?����� outputs hard copy data to the output queue.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

��������

Page 86: DG2030 Data Generator Programmer Manual

Command Descriptions

'#-/ DG2030 Programmer Manual

B*��$ *�!�� 7E8

The >��?5<���$% command sets the hard copy output format.

The >��?5<���$% query returns the currently specified hard copy outputformat.

HARDCOPY

>��?5

>��?5<����� �2�? � �?��' � �?��*'* � �>��GX-% � ��<<�>��?5<�����

2�? the Windows monochrome file format.

�?��' the format used by 9-pin and 24-pin dot matrix printers in ESC/P graphics mode.

�?��*'* the encapsulated Postscript format monochrome image file format.

�>��GX-% the format used by HP inkjet printers.

��<< the TIFF format.

�>��?�<������ �2�? � �?��� � �?����� � �>��@M�� � ��<<�

>��?�<����� ��<<sets the data generator to output hard copy in the TIFF format.

����

������� ������

�����

��������

��������

��������

Page 87: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#-0

B*��$�*�� 7E8

The >��?5?��� command sets the hard copy output port.

The >��?5?��� query returns the currently specified hard copy output port.

HARDCOPY

>��?5

>��?5?��� ����@ � �?�2 � ��,C,)�>��?5?���

���@outputs to a file on the floppy disk.

�?�2 outputs to the GPIB port.

��,C,) outputs to the RS-232C port.

�>��?5?���� ����@ � �?�2 � ��,C,)�

>��?�?��� ���@sets the hard copy output destination to a file on the floppy disk.

����

������� ������

�����

��������

��������

��������

Page 88: DG2030 Data Generator Programmer Manual

Command Descriptions

'#.4 DG2030 Programmer Manual

B*��$�����

The >��?5����% command starts hardcopy output.

HARDCOPY

>��?5�2��%

>��?5����%

None

>��?������ starts hardcopy output.

B��1�� 7E8

The >���-& command enables or disables the command header responses to allqueries except IEEE Std 488.2 common commands. The >���-& query returnsthe status indicating whether the command header responses are enabled or not.

Other

F��2*#-

>���-& ��� � �<< � ������>���-&

�� *& '*'Q-&* E$./-enables the command header responses.

�<< *& Q-&* E$./-disables the command header responses.

� command header responses are currently enabled.+ command header responses are currently disabled.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

Page 89: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#."

>����� �<<disables the command header responses.

>����� might return � which indicates command headers are currently enabled forreturn in query responses.

�1E

The �� query returns the �� information of the data generator.

Other

*IDN?

��

None

�� ��$'/S$)%/&-&�Y��*6-.�, �<"&0O$&- �-E-.������

��$'/S$)%/&-&������W��@,��*6-.����,+C+�<"&0O$&- �-E-.���<��*6- $'6 <*&0$% F-&#"*'�, and<F�<"&0O$&- F-&#"*'�.

�� returns ����W��@Y��,+C+��<������<F�++

��������

����

������� ������

�����

��������

��������

��������

Page 90: DG2030 Data Generator Programmer Manual

Command Descriptions

'#.' DG2030 Programmer Manual

F�15E

The A��� common query returns the ID information of the data generator.

Other

��

A���

None

��$'/S$)%/&-&�, ��*6-.�, ��-&"$. �/01-&�, �<"&0O$&- �-E-.�where��$'/S$)%/&-&������Y��@,��*6-.����,+C+,��-&"$. �/01-&��+,�<"&0O$&- �-E-.���<��*6- $'6 <*&0$% F-&#"*'�,�#J�<F�<"&0O$&- F-&#"*'�, and�#J�� �J$)-.

A��� might return ����Y��@���,+C+�+��<����� <F�++

�*? 7E8

The ���G command enables or disables the knob and all front panel buttonsexcept the ��Y��2� button.

The ���G query returns a status indicating whether the knob and the buttons arelocked or not.

These data generators do not switch between remote control and local controlmodes, but rather allow simultaneous setting from an external controller andfrom the front panel. Use this command to lock the functions of the front panelbuttons and knobs to disable front panel operations during operation from anexternal controller or during external controller software execution.

����

������� ������

�����

��������

��������

��������

Page 91: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#.)

����. When the front panel control operations are locked out by the LOCkcommand, the instrument displays the character string “FP: LOCKED” at theupper right of the screen.

Other

���*)G

���G ���� � ���-����G

���disables the front panel buttons and the knob except the ON/STBY button.

���-enables the front panel buttons and the knob.

���G ���disables the front panel buttons and the knob.

����

������� ������

�����

��������

��������

Page 92: DG2030 Data Generator Programmer Manual

Command Descriptions

'#.+ DG2030 Programmer Manual

!!�!���$������H$���IE

The ����*&5���$.*(����� query returns a list of all files and directories inthe current directory on the floppy disk.

MEMORY

����*&5���$.*(���-&

����*&5���$.*(�����

None

������������������� �<".- �'%&5����<".- �'%&5��where

�<".- �'%&5���<".- �$0-���<".- �"Q-����"0- �%$0J�,�<".- �$0-���#%&"'(�,�<".- �"Q-�������, and��"0- �%$0J���#%&"'(�.

����. A file size of 0 is returned for subdirectories.

!!�!���$������$*�1�� 7E8

The ����*&5���$.*(���-& command sets the display order for file informa-tion in disk directory listings. The ����*&5���$.*(���-& query returns thedisplay order for file information in disk directory listings.

MEMORY

����*&5���$.*(�����

����*&5���$.*(���-& ������ � ����, � ����� � ����,�����*&5���$.*(���-&

����

������� ������

�����

��������

��������

����

������� ������

�����

Page 93: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#.,

�����orders the display according to the ASCII collating sequence of the file names.

����,orders the display in the reverse order of the NAME1 order.

�����orders the display with older (Date and Time) files first.

����,orders the display with more recent (Date and Time) files first.

��������������������� ������ � ����, � ����� � ����,�

������������������� ����� sets the order of file information recorded in disk directory listings to alphabeti-cal order by file name.

!!�!���$1�������� 7E8

The ����*&5����-)%*&5 command changes the current working directory. The����*&5����-)%*&5 query returns the current working directory path.

MEMORY

����*&5����-)%*&5

����*&5����-)%*&5 ��"&-)%*&5 ?$%!�����*&5����-)%*&5

��"&-)%*&5 ?$%!���#%&"'(�where �#%&"'(� is the name of the new current working directory.

������������������� ��"&-)%*&5 ?$%!�

����������������� UZ��ZK��@C changes the current working directory to \DG\WORK3.

��������

��������

��������

����

������� ������

�����

��������

��������

��������

Page 94: DG2030 Data Generator Programmer Manual

Command Descriptions

'#.- DG2030 Programmer Manual

!!�!���$*�C

The ����*&5��?� command copies a file on the disk and creates a new file. Ifthe copy destination file already exists, an error is issued and the existing file isnot overwritten.

MEMORY

����*&5���-%-���, ����*&5���-%-������

����*&5��?� �<&*0TJ$%!����*TJ$%!�

�<&*0TJ$%!���#%&"'(� where �#%&"'(� is the path name of the source file.

��*TJ$%!���#%&"'(� where �#%&"'(� is the path name of the destination file.

���������?� U������?�� � ��K��@?�� copies the file MYDATA.PDA in the current directory and creates a new file,MYWORK.PDA, in the current directory.

!!�!���$1���������

The ����*&5���-%-��� command deletes all files and subdirectories in thecurrent directory. However, non-empty subdirectories are not deleted.

MEMORY

����*&5���-%-������

����*&5���-%-���

None

���������������� deletes all files and empty subdirectories in the current directory.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

Page 95: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#..

!!�!���$1�����H$5�!�I

The ����*&5���-%-������ command deletes the file or subdirectory with thespecified path name. However, non-empty subdirectories are not deleted.

MEMORY

����*&5���-%-���

����*&5���-%-������ �?$%! �$0-�

�?$%! �$0-���#%&"'(�where �#%&"'(� is the path name of the file or subdirectory to be deleted.

������������� U������?�� deletes the file NOMORE.PDA in the current directory.

!!�!���$ ���E

The ����*&5<��� query returns used size and unused size of the massmemory. This query is equivalent to the ����*&5<������ query.

MEMORY

None

����*&5<���

None

�������<��� ��#-6 �"Q-�� ��'/#-6 �"Q-�where ��#-6 �"Q-������� and��'/#-6 �"Q-�������.

�������<��� might return �������<��� �+:B8:��CB,�+:

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

��������

Page 96: DG2030 Data Generator Programmer Manual

Command Descriptions

'#./ DG2030 Programmer Manual

!!�!���$�5������M�

The ����*&5����"$."Q- command formats a floppy disk. The format type isspecified by the argument.

MEMORY

None

����*&5����"$."Q- ���� � ��, � >�� � >�, � >�C�

You can select from the following formats:

������� 1���������

��' &��1 >&9 = 1 $9 ����4�1 , �������+����41 <'& !����+������% ������ ���� � ;� &�� �� ���3�!� N2'99 &��%

��& &��1 ?#9 = 1 $9 ����4�1 $ �������+����41 <'& !����+������% ������ ����"� ;�A,$99 &��%

0�' &0�1 '%&2& � 1 >> ����4�1 '< �������+����41 '19&# !����+������% ��������� �"� ;�A,$99 &0�%

0�& &0�1 '%&99 � 1 $9 ����4�1 '< �������+����41 <'& !����+������% ��������� ���3�!� N2'99 &0�%

0�2 &0�1 '%##9 � 1 $9 ����4�1 '$ �������+����41 <'& !����+������% ��������� � � ;� &0�%

���������������;� >�Cformats a floppy disk for IBM PC 2HD.

!!�!���$�*�1

The ����*&5���� command loads in pattern data and block, group, sequence,and setup information in DG2030 Data Generator format into the instrument’sinternal memory from a disk file.

MEMORY

����*&5��F�

����

������� ������

�����

��������

��������

����

������� ������

Page 97: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#.0

����*&5���� �<".- �$0-�

�<".- �$0-���#%&"'(�where �#%&"'(� is the name of the file to be loaded.

����������� U������?�� loads all information from the file MYDATA.PDA in the current directory intothe instrument’s internal memory.

!!�!���$�*@ 7E8

The ����*&5���@ command sets and clears file locks. When a file is locked, itcannot be deleted or written to. The ����*&5���@ query returns whether ornot the file is locked.

MEMORY

None

����*&5���@ �?$%! �$0-����� � �<< � � � +�����*&5���@ �?$%! �$0-�

�?$%! �$0-���#%&"'(� where �#%&"'(� is the name of the file to be locked or unlocked.

�� *& � locks the file.

�<< *& + unlocks the file.

+ the file is not locked.� the file is locked.

����������@ U������?�� ��� locks the file COUNT1.PDA in the current directory.

�����

��������

��������

����

������� ������

�����

��������

��������

��������

Page 98: DG2030 Data Generator Programmer Manual

Command Descriptions

'#/4 DG2030 Programmer Manual

!!�!���$!1��������

The ����*&5����-)%*&5 command creates a new subdirectory. The commandis invalid if a directory with the specified name already exists.

MEMORY

����*&5����-)%*&5� ����*&5����-)%*&5

����*&5����-)%*&5 ��"&-)%*&5 ?$%!�

��"&-)%*&5 ?$%!���#%&"'(� where �#%&"'(� is the name or path of the new directory.

����������������� UK��@: creates the new directory WORK4 in the current working directory.

!!�!���$�1��������

The ����*&5����-)%*&5 command removes a subdirectory. If a file exist inthe subderectory, this command will not be performed.

MEMORY

����*&5����-)%*&5� ����*&5����-)%*&5

����*&5����-)%*&5 ��"&-)%*&5 ?$%!�

��"&-)%*&5 ?$%!���#%&"'(� where �#%&"'(� is the name of the directory to be removed.

����������������� UK��@: removes the directory WORK4 in the current working directory.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

Page 99: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#/"

!!�!���$��5���

The ����*&5���$0- command changes the name of the specified file. A filethat is locked using the ����*&5���G command cannot be renamed.

MEMORY

����*&5��?�

����*&5���$0- �<&*07S".-'$0-�� ��*7S".-'$0-�

�<&*07S".-'$0-���#%&"'(�where �#%&"'(� is the name of the file to be changed.

��*7S".-'$0-���#%&"'(�where �#%&"'(� is the name of the file after it is changed.

������������� U������?�� � �����,?�� changes the name of the file COUNT1.PDA in the current working directory toCOUNT2.PDA.

!!�!���$��J�

The ����*&5��F� command saves the pattern data and block, group, sequence,and setup information stored in the internal memory into a disk file inDG2030 Data Generator format.

MEMORY

����*&5����

����*&5��F� �?$%! �$0-�

�?$%! �$0-���#%&"'(�where �#%&"'(� is the path name of the file.

���������F� U��K����?�� saves all the information in internal memory to the file NEWDATA.PDA in thecurrent working directory.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

Page 100: DG2030 Data Generator Programmer Manual

Command Descriptions

'#/' DG2030 Programmer Manual

!*1�E

The ���� query returns all the setting states related to the pattern generationmode.

MODE

��������-, �����?�$%-

����

None

����������� ���?��� � ������ � ���? � ��>������D��?����� ������ �������

���� might return ��������� ��?���D�?���� ����

Here, the run mode is set to repeat and the output pattern update method is set toautomatic. (See the items on the ��������- and �����?�$%- commands.)

!*1�$����� 7E8

The ��������- command sets the run mode for pattern generation. TheMODE:STATe? query returns the pattern generation run mode setting.

MODE

����

��������- ���?-$% � ����.- � ���J � ��>$')-6���������-

��?-$% Pattern data output is repeated.����.- Pattern data output is performed exactly once.���J Pattern data is output not according to the internal clock, but

rather by a clock signal created by the STEP key.��>$')-6 Pattern data is output according to the defined sequence.

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

Page 101: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#/)

����������� ���?��� � ������ � ���? � ��>������

��������� ������ sets the run mode to single.

!*1�$=�1��� 7E8

The �����?�$%- command sets the output pattern update method used whendata related to pattern generation is changed. The �����?�$%- query returnsthe output pattern update method used when data related to pattern generation ischanged.

MODE

����

�����?�$%- ����� � ���/$.������?�$%-

���� Pattern output reflects changes each time the data is changed in any way.

���/$. Pattern output is not changed when data is changed until an update forcing command is received.

������?����� ����� � �������

�����?���� ���� sets the output pattern update method to AUTO.

��������

��������

����

������� ������

�����

��������

��������

��������

Page 102: DG2030 Data Generator Programmer Manual

Command Descriptions

'#/+ DG2030 Programmer Manual

F*� 7E8

The A�?� common command causes bit 0 in the SESR (Standard Event StatusRegister) to be set, and the operation complete message to be issued, when allpending operations are finished.

The A�?� query waits until all pending operations are finished and returns a “1”ASCII character.

Other

AK��

A�?�A�?�

None

>��?�?��� ���@D>��?� �����DA�?�causes the SESR bit 0 to be set and the operation complete message to be issuedon the completion of hardcopy.

F*��E

The A�?� common query returns the implemented options of the data generator.

Other

None

A�?�

None

��J%"*'�����J%"*'��where

� indicates no option,�>:T�>� indicates the option 01 (4 additional output channels)

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

Page 103: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#/,

A�?� might return �>:T�>� to indicate that the option 01 is installed in the instrument.

*=����E

The ���?�� query returns all the setting state rerated to the channel and clockoutput.

OUTPUT

����

���?/%

None

���?�� might return���?�����F��R+BD���F��R+BD�>+>��>R+B++D��KRT+B++D�����R+++�T+�D��>�2��R+D������R+D����R+++�T�D<���R+++�T�D���@�KR+++�T+�D���?���>�>��>R+B++D��KRT+B++D�����R+++�T+�D��>�2��R+D������R�D����R+++�T�D<���R+++�T�D���@�KR+++�T+�D���?���>,>��>R+B++D��KRT+B++D�����R+++�T+�D��>�2��R+D������R�D����R+++�T�D<���R+++�T�D���@�KR+++�T+�D���?���>C>��>R+B++D��KRT+B++D�����R+++�T+�D��>�2��R+D������R�D����R+++�T�D<���R+++�T�D���@�KR+++�T+�D���?���>:>��>R+B++D��KRT+B++D�����R+++�T+�D��>�2��R+D������R�D����R+++�T�D<���R+++�T�D���@�KR+++�T+�D���?���>B>��>R+B++D��KRT+B++D�����R+++�T+�D��>�2��R+D������R�D����R+++�T�D<���R+++�T�D���@�KR+++�T+�D���?���>9>��>R+B++D��KRT+B++D�����R+++�T+�D��>�2��R+D������R�D����R+++�T�D<���R+++�T�D���@�KR+++�T+�D���?���>�>��>R+B++D��KRT+B++D�����R+++�T+�D��>�2��R+D������R�D����R+++�T�D<���R+++�T�D���@�KR+++�T+�D���?���>��@>��>R+B++D��KRT+B++D��>�2��R+D����R+++�T�D<���R+++�T�D���?����<���R4,:�+�+�+��<�����+��<�,�,�+��<�C�C�+��<�:�:�+��<�B�B�+��<�9�9�+��<�����+

��������

����

������� ������

�����

��������

��������

Page 104: DG2030 Data Generator Programmer Manual

Command Descriptions

'#/- DG2030 Programmer Manual

*=����$BNO$���� 7E8

The ���?/%�>�'������' command assigns a data bit to the specified channel.The ���?/%�>�'������' query returns the data bit assigned to the specifiedchannel. A bit number of –1 is returned if no data bit is assigned to the channel.

OUTPUT

���?/%�>�'�����$#-, ���?/%��<"'-

���?/%�>�'������' �2"%����?/%�>�'������' (�'���+ %* ��)

�2"%������� where ����� is a data bit number (0 to 7).

����?���>�'�������� �2"%�

���?���>������� C assigns data bit D03 to channel 1.

*=����$BNO$1���� 7E8

The ���?/%�>�'�����5 command sets the delay time for the specifiedchannel. The ���?/%�>�'�����5 query returns the delay time setting for thespecified channel.

OUTPUT

None

���?/%�>�'�����5 ��"0-����?/%�>�'�����5 (�'���+ %* ��)

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

Page 105: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#/.

��"0-�����,���/'"%��where ���,� combined with ��/'"%�� specifies a time, and ��/'"%����#�0#�/#�'#�, for seconds, milliseconds, microseconds, or nanoseconds.

����?���>�'������� ���C�

���?���>+����� �+'# sets the delay time for channel 0 to 10ns.

*=����$BNO$1��@�2 7E8

The ���?/%�>�'����@-O command sets the deskew value for the specifiedchannel.The ���?/%�>�'����@-O query returns the deskew value setting forthe specified channel.

OUTPUT

���?/%�>�'����@-O�����

���?/%�>�'����@-O ��"0-����?/%�>�'����@-O (�'���+ %* ��)

<Time>::=<NR2>[<Unit>]where ���,� combined with ��/'"%�� specifies a time, and ��/'"%����#�0#�/#�'#�, for seconds, milliseconds, microseconds, or nanoseconds.

[:OUTPUT:CH<n>:DESKEW] <NR3>

���?/%�>����@�K[,R'#sets the deskew value for channel 1 to 2 ns.

��������

��������

��������

����

������� ������

�����

��������

��������

��������

Page 106: DG2030 Data Generator Programmer Manual

Command Descriptions

'#// DG2030 Programmer Manual

*=����$BNO$1��@�2$�����

The ���?/%�>�'����@-O����� command resets the deskew value for thespecified channel.

OUTPUT

���?/%�>�'����@-O

���?/%�>�'����@-O�����(�'���+ %* ��)

None

���?���>,���@�K�����resets the deskew value for channel 2.

*=����$BNO$ ��� 7E8

�!- ���?/%�>�'�<��. command sets the fall time for the specififd channel.The ���?/%�>�'�<��. query returns fall time setting for the specifiedchannel. If FAST or 0 is used in the argument, the fall time become as fast aspossible.

OUTPUT

���?/%�>�'�<��. ���(-� ���?/%�>�'�<��. F��"6

���?/%�>�'�<��. ��"0-����?/%�>�'�<��. (�'���+ %* ��)

��"0-�����,����'"%���<�����'"%���#�0#�/#�'#�

����?���>�'�<�������C�

���?���>�<��� �'#sets the fall time for channel 1 to 1ns.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

��������

Page 107: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#/0

*=����$BNO$ ���E ��5��

The ���?/%�>�'�<��. ���(- query returns the valid range of the fall timesetting for the specified channel.

OUTPUT

���?/%�>�'�<��.� ���?/%�>�'�<��. F��"6

���?/%�>�'�<��. ���(-(�'���+ %* ��)

None

����?���>�'�<��� ��������0"'���0$\�

�0"'�����C�where ���C� is the minimum acceptable value.

�0$\�����C�where ���C� is the maximum acceptable value.

���?���>+<��� �����might return ���?���>+<��� ������,+�T���+�T�

����

������� ������

�����

��������

��������

��������

Page 108: DG2030 Data Generator Programmer Manual

Command Descriptions

'#04 DG2030 Programmer Manual

*=����$BNO$ ���E J����

The ���?/%�>�'�<��. F��"6 command returns the fall time setting for thespecified cahnnel and wether the setting value is valid or not.

OUTPUT

���?/%�>�'�<��. � ���?/%�>�'�<��. ���(-

���?/%�>�'�<��. F��"6(�'���+ %* ��)

None

����?���>�'�<��� F���������C���+��� 1:valid, 0:invalid

���?���>+<��� F����might return ���?���>+<��� F������+�T���

*=����$BNO$B� B 7E8

The ���?/%�>�'�>��> command sets the high-level output voltage for thespecified channel. The ���?/%�>�'�>��> query returns the high-level outputvoltage setting for the specified channel.

OUTPUT

���?/%�>�'���K

���?/%�>�'�>��> �F*.%����?/%�>�'�>��> (�'���+ %* ��)

�F*.%�����,����'"%��where ���,� combined with ���'"%��specifies a high-level voltage; and��'"%���F � 0F�, for volt or millivolt.

����?���>�'�>��>� ���,�

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

��������

Page 109: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#0"

���?���>,>��> �F sets the channel 2 high-level output voltage to 1 V.

*=����$BNO$�5B���� 7E8

The ���?/%�>�'���>"1"% command sets the control method for the outputimpedance of the specified channel. The ���?/%�>�'���>"1"% query returnsthe control method currently used for the output impedance of the channelspecified in the header.

OUTPUT

None

���?/%�>�'���>"1"% ��<<����-&'$.��P�-&'$.�2��>�+���,�C����?/%�>�'���>"1"% (�'���+ %* ��)

��<< � +�No output impedance control

����-&'$. � ��The output impedance is controlled by the pod’s channel 0 signal.

��P�-&'$. � ,�The output impedance is controlled by an external input signal (INH).

�2��> � C�The output impedance is controlled by the logical OR of the pod’s channel 0signal and an external input signal (INH).

����?��?���#��>�'���>�2��� �+ � � � , � C�

���?���>C��>�2�� �P������ sets the output impedance of channel 3 to be controlled by an external inputsignal (INH).

��������

����

������� ������

�����

��������

��������

��������

Page 110: DG2030 Data Generator Programmer Manual

Command Descriptions

'#0' DG2030 Programmer Manual

*=����$BNO$�*: 7E8

The ���?/%�>�'���K command sets the low-level output voltage for thespecified channel. The ���?/%�>�'���K query returns the low-level outputvoltage setting for the specified channel.

OUTPUT

���?/%�>�'�>��>

���?/%�>�'���K �F*.%����?/%�>�'���K (�'���+ %* ��)

�F*.%�����,����'"%��where ���,� combined with ���'"%��specifies a low-level voltage; and��'"%���F � 0F�, for volt or millivolt.

����?���>�'���K� ���,�

���?���>:��K T�F sets channel 7 low-level output voltage to –1 V.

*=����$BNO$�������

The ���?/%�>�'�����$#- command clears the data bit assignment for thespecified channel.

OUTPUT

���?/%�>�'������', ���?/%��<"'-

���?/%�>�'�����$#-H�'���+ %* ��)

None

���?���>C������� clears data bit assignment for channel 3.

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

��������

Page 111: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#0)

*=����$BNO$���� 7E8

�!- ���?/%�>�'����- command sets the rise time for the specififd channel.The ���?/%�>�'����- query returns rise time setting for the specifiedchannel. If FAST or 0 is used in the argument, the rise time become as fast aspossible.

OUTPUT

���?/%�>�'����- ���(-� ���?/%�>�'����- F��"6

���?/%�>�'����- ��"0-����?/%�>�'����- H�'���+ %* ��)

��"0-�����,����'"%���<�����'"%���#�0#�/#�'#�

����?���>�'���������C�

���?���>����� �'#sets the rise time for channel 1 to 1ns.

����

������� ������

�����

��������

��������

��������

Page 112: DG2030 Data Generator Programmer Manual

Command Descriptions

'#0+ DG2030 Programmer Manual

*=����$BNO$����E ��5��

The ���?/%�>�'����- ���(- query returns the valid range of the rise timesetting for the specified channel.

OUTPUT

���?/%�>�'����-� ���?/%�>�'����- F��"6

���?/%�>�'����- ���(-H�'���+ %* ��)

None

����?���>�'����� ��������0"'���0$\�

�0"'�����C�where ���C� is the minimum acceptable value.

�0$\�����C�where ���C� is the maximum acceptable value.

���?���>+���� �����might return ���?���>+���� ������,+�T���+�T�

*=����$BNO$����E J����

The ���?/%�>�'����- F��"6 command returns the rise time setting for thespecified cahnnel and wether the setting value is valid or not.

OUTPUT

���?/%�>�'����- � ���?/%�>�'����- ���(-

���?/%�>�'����- F��"6H�'���+ %* ��)

None

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

Page 113: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#0,

����?���>�'����� F���������C���+��� 1:valid, 0:invalid

���?���>+���� F����might return ���?���>+���� F������+�T���

*=����$B�@$ ��� 7E8

�!- ���?/%�>��@<��. command sets the fall time for the clock output. The���?/%�>��@<��. query returns fall time setting for the clock output. IfFAST or 0 is used in the argument, the fall time become as fast as possible.

OUTPUT

���?/%�>��@<��. ���(-� ���?/%�>��@<��. F��"6

���?/%�>��@<��. ��"0-����?/%�>��@<��.

��"0-�����,����'"%���<�����'"%���#�0#�/#�'#�

����?���>��@<�������C�

���?���>��@<��� �'#sets the fall time for the clock output to 1ns.

��������

��������

����

������� ������

�����

��������

��������

��������

Page 114: DG2030 Data Generator Programmer Manual

Command Descriptions

'#0- DG2030 Programmer Manual

*=����$B�@$ ���E ��5��

The ���?/%�>��@<��. ���(- query returns the valid range of the fall timesetting for the clock output.

OUTPUT

���?/%�>��@<��. � ���?/%�>��@<��. F��"6

���?/%�>��@<��. ���(-

None

����?���>��@<��� ��������0"'���0$\�

�0"'�����C�where ���C� is the minimum acceptable value.

�0$\�����C�where ���C� is the maximum acceptable value.

���?���>��@<��� �����might return ���?���>��@<��� ������,+�T���+�T�

*=����$B�@$ ���E J����

The ���?/%�>��@<��. F��"6 command returns the fall time setting for thespecified cahnnel and wether the setting value is valid or not.

OUTPUT

���?/%�>��@<��. � ���?/%�>��@<��. ���(-

���?/%�>��@<��. F��"6

None

����?���>��@<��� F���������C���+��� 1:valid, 0:invalid

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

��������

Page 115: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#0.

���?���>��@<��� F����might return ���?���>��@<��� F������+�T���

*=����$B�@$B� B 7E8

The ���?/%�>��@>��> command sets the high-level output voltage for theclock output. The ���?/%�>��@>��> query returns the high-level outputvoltage setting for the clock output.

OUTPUT

���?/%�>��@��K

���?/%�>��@>��> �F*.%����?/%�>��@>��>

�F*.%�����,����'"%��where ���,� combined with ���'"%��specifies a high-level voltage; and��'"%���F � 0F�, for volt or millivolt.

����?���>��@>��>� ���,�

���?���>��@>��> �F sets the high-level output voltage for the clock output to 1 V.

��������

����

������� ������

�����

��������

��������

��������

Page 116: DG2030 Data Generator Programmer Manual

Command Descriptions

'#0/ DG2030 Programmer Manual

*=����$B�@$�*: 7E8

The ���?/%�>��@��K command sets the low-level output voltage for the clockoutput. The ���?/%�>��@��K query returns the low-level output voltagesetting for the clock output.

OUTPUT

���?/%�>��@>��>

���?/%�>��@��K �F*.%����?/%�>��@��K

�F*.%�����,����'"%��where ���,� combined with ���'"%��specifies a low-level voltage; and��'"%���F � 0F�, for volt or millivolt.

����?���>��@��K� ���,�

���?���>��@��K T�F sets the low-level output voltage for the clock output to –1 V.

*=����$B�@$���� 7E8

�!- ���?/%�>��@���- command sets the rise time for the clock output. The���?/%�>��@���- query returns rise time setting for the clock output. IfFAST or 0 is used in the argument, the rise time become as fast as possible.

OUTPUT

���?/%�>��@���- ���(-� ���?/%�>��@���- F��"6

���?/%�>��@���- ��"0-����?/%�>��@���-

��"0-�����,����'"%���<�����'"%���#�0#�/#�'#�

����?���>��@��������C�

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

��������

Page 117: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#00

���?���>��@���� �'#sets the rise time for the clock output to 1ns.

*=����$B�@$����E ��5��

The ���?/%�>��@���- ���(- query returns the valid range of the rise timesetting for the clock output.

OUTPUT

���?/%�>��@���-� ���?/%�>��@���- F��"6

���?/%�>��@���- ���(-

None

����?���>��@���� ��������0"'���0$\�

�0"'�����C�where ���C� is the minimum acceptable value.

�0$\�����C�where ���C� is the maximum acceptable value.

���?���>��@���� �����might return ���?���>��@���� ������,+�T���+�T�

��������

����

������� ������

�����

��������

��������

��������

Page 118: DG2030 Data Generator Programmer Manual

Command Descriptions

'#"44 DG2030 Programmer Manual

*=����$B�@$����E J����

The ���?/%�>��@���- F��"6 command returns the rise time setting for theclock output and wether the setting value is valid or not.

OUTPUT

���?/%�>��@���- � ���?/%�>��@���- ���(-

���?/%�>��@���- F��"6

None

����?���>��@���� F���������C���+��� 1:valid, 0:invalid

���?���>��@���� F����might return ���?���>��@���� F������+�T���

*=����$1� �� 7E8

The ���?/%��<"'- command assigns data bits to all the channels specified inthe header. The data bit assignment is cleared for any data bit not specified in theargument. The ���?/%��<"'- query returns the data bits assigned to thechannels specified in the header.

OUTPUT

���?/%�>�'������', ���?/%�>�'�����$#-

���?/%��<"'- ��##"('"'S*����?/%��<"'-

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

Page 119: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#"4"

��##"('"'S*���1.*)G!-$6-&���##"('����<���##"('����<���#7#"('�� arbitrary block data that defines the pod channel assignments

where,

�1.*)G!-$6-&���15%- )*/'% 6"("%��15%- )*/'%�

��##"('�����!$''-.����2"%����>*.6��

The ���!$''-.�, ��2"%�, and ��>*.6�� items are ASCII character stringsthat express the following information.

���!$''-.� channel number (0 to 7)��2"%� data bit number (0 to 7)��>*.6�� high-impedance control selection

(0: no control, 1: channel 0 control, 2: external input signal, 3: logical or of the channel 0 signal and the external input signal)(See the ���?/%�>�'���>"1"% command.)

��<�� ������ ."'- S--6 )*6- H�+I�

����?����<���� ��##"('"'S*�where ��##"('"'S*� is an arbitrary data block with the same format as theargument.

���?/%��<"'- 4,��+�:����<���B�,��<�,���+ assigns the pod A channels as follows when executed.

Channel 0: Bit 4, high-impedance state controlled by the channel 0 signalChannel 1: Bit 5, high-impedance state controlled by an external input signalChannel 2: Bit 7, no high-impedance controlOther channels: Assignments cleared

��������

��������

��������

Page 120: DG2030 Data Generator Programmer Manual

Command Descriptions

'#"4' DG2030 Programmer Manual

*=����$���J�� 7E8

The ���?/%���F-. command sets the event input threshold level. The���?/%���F-. query returns the event input threshold level setting.

OUTPUT

None

���?/%���F-. �F*.%����?/%���F-.

�F*.%�����,����'"%��where ��'"%���F � 0F� with a range of –5.0 V to 5.0 V in 0.1 V steps.

����?�����F��� ���,�

���?�����F�� B++0F sets the event input threshold level to 500 mV.

*=����$���J�� 7E8

The ���?/%���F-. command sets the high-impedance control input (inhibitinput) threshold level. The ���?/%���F-. query returns the high-impedancecontrol input threshold level setting.

OUTPUT

���?/%���F-. �F*.%����?/%���F-.

�F*.%�����,����'"%��where ��'"%���F � 0F� with a range of –5.0 V to 5.0 V in 0.1 V steps.

����?�����F��� ���,�

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

��������

Page 121: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#"4)

���?�����F�� C++0F sets the high-impedance control input threshold level to 300 mV.

F�� 7E8

The A?�� common command controls the automatic power-on clearing of theESER (Event Status Enable Register), the SRER (Service Request EnableRegister), and DESER (Device Event Status Enable Register). These registersare used in the status and event reporting system.

The A?�� common query returns status of the power-on status clear flag.

Other

����, A���, <���*&5, A���

A?�� �?*O-&7�' �%$%/# �.-$&�A?��

�?*O-&7�' �%$%/# �.-$&�������where ����� is a decimal integer that must range from –32767 to 32767, thevalue of which determines whether power on clearing occurs as follows:

Zero value sets the power-on status clear flag to FALSE. When this flag is set FALSE, the values of the DESER, the SESR, and the ESER are restored at power on. With these values restored, the instrument can assert SRQ after powering on.

Nonzero value sets the power-on status clear flag to TRUE. When this flag is set TRUE, all the bits in the DESER are set and are reset in the SESR and ESER. This action prevents the instrument from asserting any SRQs after powering on.

� the power-on status clear flag is currently set to TRUE.+ the power-on status clear flag is currently set to FALSE.

A?�� �sets the power-on status flag to TRUE.

A?�� might return :+ to indicate that the power-on status clear flag is currently set toFALSE.

��������

����

������� ������

�����

��������

��������

��������

Page 122: DG2030 Data Generator Programmer Manual

Command Descriptions

'#"4+ DG2030 Programmer Manual

F���

The A��� common command resets this data generator to the default state(default values are listed in Appendix D).

Other

<���*&5, ����&-

A���

None

A���resets the instrument.

�=55��E

The ����"'( query returns status that indicates whether or not pattern data (or asequence) is being output.

Other

����%, ���?

����"'(

None

� pattern data or a sequence is being output.+ nothing is being output.

������� might return ������� �.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

��������

Page 123: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#"4,

�*=���$�J�5�$�5�&�� 7E8

The ����)-�F������2.- command enables or disables the EVENT inputThe ����)-�F������2.- query returns whether or not the EVENT input isenabled.

SOURCE

None

����)-�F������2.- ��� � �<< � � � +�����)-�F������2.-

�� *& �enables the EVENT input.

�<< *& +disables the EVENT input.

��������F������2��� �� � +�

�������F������2�� ��enables the EVENT input.

����

������� ������

�����

��������

��������

��������

Page 124: DG2030 Data Generator Programmer Manual

Command Descriptions

'#"4- DG2030 Programmer Manual

�*=���H$*��������IE

The ����)-����"..$%*&� query returns all the settings states related to clocksignals.

SOURCE

����)-���"..$%*&�P�-&'$.<��L/-')5, ����)-���"..$%*&����-&'$.�<��L/-')5, ����)-���"..$%*&����-&'$.�?��.*)G, ����)-���"..$%*&����)-

����)-����"..$%*&�

None

������������������������ ��������� � �P�������D��P������<��L���������C�>;D�������������������������<��L������ ���C�>;D�?�����@� �� �+�

����)-���"..$%*& might return ���������������������� ��������D�P������<��L������+++��8>;D������������������������<��L����� ,+++��8>;D?�����@�

�*=���$*��������$�L�����$ ��6���� 7E8

The ����)-���"..$%*&�P�-&'$.<��L/-')5 command enters the frequencyof the externally supplied clock signal. The ����)-���"..$%*&�P�-&7'$.<��L/-')5 query returns the externally supplied clock signal frequencysetting.

SOURCE

����)-����"..$%*&� , ����)-���"..$%*&����-&'$.�<��L/-')5, ����)-���"..$%*&����-&'$.�?��.*)G, ����)-���"..$%*&����)-

����)-���"..$%*&�P�-&'$.<��L/-')5 �<&-N/-')5�����)-���"..$%*&�P�-&'$.<��L/-')5

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

Page 125: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#"4.

�<&-N/-')5�����C����'"%��where ���C� is a decimal number that combines with ���'"%�� to have a rangeof 10.00E–3�400.0E+6Hz, and ���'"%����>Q � G>Q � �>Q�, for hertz,kilohertz or megahertz.

������������������P������<��L������ ���S�>;

�����������������P������<��L����� �++�>; sets the external clock signal frequency input setting to 10 MHz.

�*=���$*��������H$�5�����I$ ��6���� 7E8

The ����)-���"..$%*&����-&'$.�<��L/-')5 command sets the frequencyof the internal clock oscillator. The ����)-���"..$%*&����-&'$.�<��7L/-')5 query returns the internal clock oscillator frequency setting.

SOURCE

����)-����"..$%*&� , ����)-���"..$%*&�P�-&'$.<��L/-')5, ����)-���"..$%*&����-&'$.�?��.*)G, ����)-���"..$%*&����)-

����)-���"..$%*&����-&'$.�<��L/-')5 �<&-N/-')5�����)-���"..$%*&����-&'$.�<��L/-')5

�<&-N/-')5�����C����'"%��where ���C� is a decimal number that combines with ���'"%�� to have a rangeof 10.00E–3�400.0E+6Hz, and ���'"%����>Q � G>Q � �>Q�, for hertz,kilohertz or megahertz.

�������������������������<��L������ ���S�>;

������������������������<��L����� �++�>; sets the internal clock oscillator frequency to 100 MHz.

��������

��������

��������

����

������� ������

�����

��������

��������

��������

Page 126: DG2030 Data Generator Programmer Manual

Command Descriptions

'#"4/ DG2030 Programmer Manual

�*=���$*��������H$�5�����I$������? 7E8

The ����)-���"..$%*&����-&'$.�?��.*)G command sets whether or notthe internal clock oscillator is phase synchronized (by PLL operation) with thereference oscillator. The ����)-���"..$%*&����-&'$.�?��.*)G queryreturns whether or not the internal clock oscillator is phase synchronized (byPLL operation) with the reference oscillator.

SOURCE

����)-����"..$%*&� , ����)-���"..$%*&�P�-&'$.<��L/-')5, ����)-���"..$%*&����-&'$.�<��L/-')5, ����)-���"..$%*&����)-

����)-���"..$%*&����-&'$.�?��.*)G ��� � �<< � � � +�����)-���"..$%*&����-&'$.�?��.*)G

�� *& � The phase is synchronized. (PLL on)�<< *& + The phase is not synchronized. (PLL off)

�������������������������?�����@� �� � +�

������������������������?�����@ �� synchronizes the internal clock oscillator with the reference oscillator.

�*=���$*��������$�*=��� 7E8

The ����)-���"..$%*&����)- command sets whether the internal clockoscillator or an external clock input signal is used as the clock signal source. The����)-���"..$%*&����)- query returns whether the internal clockoscillator or an external clock input signal is used as the clock signal source.

SOURCE

����)-����"..$%*&� , ����)-���"..$%*&�P�-&'$.<��L/-')5, ����)-���"..$%*&����-&'$.�<��L/-')5, ����)-���"..$%*&����-&'$.�?��.*)G

����)-���"..$%*&����)- ����-&'$. � �P�-&'$.�����)-���"..$%*&����)-

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

Page 127: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#"40

���-&'$. use the internal clock source.

�P�-&'$. use an external clock source connected to the external clock input.

������������������������ ��������� � �P�������

���������������������� �������� sets the internal clock oscillator to be used as the clock signal source.

F��� 7E8

The A��� common command sets the bits of the SRER (Service Request EnableRegister). The A��� common query returns the contents of SRER.

The power-on default for the SRER is all bits reset if the power-on status flag isTRUE. If this flag is set to FALSE, the SRER maintains its value through apower cycle.

Other

A���, ����, A���, A��� , �F��� , �F�#( , �FL%5 , A��2

A��� �2"% F$./-�A���

�2"% F$./-������� where the argument must be decimal number from 0 to 255. The SRER bits areset in binary bit according to the decimal number.

A��� :8sets the SRER to 48 (binary 00110000), which sets the ESB and MAV bits.

A��� might return C, which indicates that the SRER contains the binary number00100000.

��������

��������

��������

����

������� ������

�����

��������

��������

Page 128: DG2030 Data Generator Programmer Manual

Command Descriptions

'#""4 DG2030 Programmer Manual

�����

The ����% command sets the instrument to the start state. If the run mode is setto repeat or step, pattern data or sequence output starts. If the run mode is set tosingle, then the instrument goes to the trigger wait state.

Other

����"'( , ���?, A���

����%

None

�����sets the instrument to the start state.

F��&E

The A��2 common query returns the value of the SBR (Status Byte Register).Bit 6 of the SBR is read as a MSS (Master Status Summary) bit. Refer to Section3 Status and Events, for more details on the SBR.

Other

A���, ����, A���, A���, �F��� , �F�#( , �FL%5 , A���

A��2

None

�����which is a decimal number.

A��2 might return �9, which indicates that the SBR contains the binary number01100000.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

��������

Page 129: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#"""

��*�

The ���? command stops pattern data or sequence output. If the run mode is setto single, the trigger wait state is cancelled.

Other

����"'( , ����%, A���

���?

None

���?stops pattern data or sequence output.

�C����$1��� 7E8

The ����-0���� command sets the internal clock date. The ����-0���� query returns the internal clock date.

SYSTEM

����-0����

����-0���� ��-$&����*'%!����$5�����-0����

��-$&������� the year��*'%!������� the month��$5������� the day

������������ ��-$&����*'%!����$5�

���������� ������ sets the date.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

��������

Page 130: DG2030 Data Generator Programmer Manual

Command Descriptions

'#""' DG2030 Programmer Manual

�C����$���=�� 7E8

The ����-0??��#- command sets whether or not the instrument goes to theoperator key input wait state (power-up pause) when an error is detected by thepower-up diagnostics or no output pod is connected. The ����-0??��#- queryreturns the power-up pause setting (on or off).

SYSTEM

None

����-0??��#- ��� � �<< � � � +�����-0??��#-

�� *& � enables the power-up pause.

�<< *& + disables the power-up pause.

�������??���� � �� � +�

������??���� �� turns power-up pause on.

�C����$�������$�!!������

The ����-0���/&"%5���-6"$%- command sets all internal settings to thefactory setting state (the same state that results when the <���*&5 command isexecuted) and completely erases all data. Bit patterns, groups, blocks, andsequences are included in the erased data. The GPIB and RS-232-C settings, andthe data and time settings are not reset.

SYSTEM

<���*&5, A���

����-0���/&"%5���-6"$%-

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

Page 131: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#"")

None

�C����$�������$����� 7E8

The ����-0���/&"%5����- command sets security to on or off. The����-0���/&"%5����- query returns whether the security setting is on oroff. When the security setting is changed from on to off, the contents of internalmemory are completely erased. The security on/off setting is not changed byexecuting the <���*&5 command.

SYSTEM

����-0���/&"%5���-6"$%-

����-0���/&"%5����- ��� � �<< � � � +�����-0���/&"%5����-

�� *& � sets the security state to on.

�<< *& + sets the security state to off.

��������������������� �� � +�

������������������� �� sets the security state to on.

��������

����

������� ������

�����

��������

��������

��������

Page 132: DG2030 Data Generator Programmer Manual

Command Descriptions

'#""+ DG2030 Programmer Manual

�C����$��!� 7E8

The ����-0���� command sets the internal clock time. The ����-0���� query returns the internal clock time.

SYSTEM

����-0����

����-0���� �>*/&����"'/%-����-)*'6�����-0����

�>*/&� the hours��"'/%-� the minutes��-)*'6� the seconds

������������ �>*/&����"'/%-����-)*'6�

���������� ��� ,C� B8 sets the time.

F��

The A��� common command generates trigger event.

Other

����"'( , ����%, ���?

A���

None

A���generates trigger event.

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

��������

Page 133: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#"",

��� ���E

The ����(-& query returns all of the currently specified settings related to thetrigger function.

TRIGGER

����(-&��?-6$')-, ����(-&��F-., ����(-&���?-

����(-&

None

����������?��������>��>���K�D���F������,�����?���?�����F��������F��D����������P����������������D������F���������"0-�D����������+�

������� might returns ���������?������ ��KD��F�� �:++D���?� ?�����F�D������ ��������D�����F������ �+/#D����� �

����

������� ������

�����

��������

��������

��������

Page 134: DG2030 Data Generator Programmer Manual

Command Descriptions

'#""- DG2030 Programmer Manual

��� ���$�!������ 7E8

The ����(-&��?-6$')- command selects high impedance (1 k�) or lowimpedance (50 �) for the external trigger input connector. The ����(-&��?-67$')- query returns currently selected impedance.

TRIGGER

����(-&��F-., ����(-&���?-� ����(-&����)-

����(-&��?-6$')- �>��> � ��K�����(-&��?-6$')-

>��> selects high impedance: 1 k�

��K selects low impedance: 50 �

���������?������ ��K selects low impedance.

��� ���$�5���J��E

The TRIGger:INTERVal? query returns the interval time and the state of theinternal trigger

TRIGGER

����(-&�����F$.����-� ����(-&�����F$.����

����(-&�����F$.

None

�������������F���������"0-�D����������+�

������������F�� might returns ������������F������ �+��D����� �

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

��������

Page 135: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#"".

��� ���$�5���J��$����� 7E8

The ����(-&�����F$.����- command sets the internal trigger to on or off.�!- ����(-&�����F$.����- query returns whether the internal trigger is onor off.

TRIGGER

����(-&�����F$. � ����(-&�����F$.����

����(-&�����F$.����-�����<<�+�������(-&�����E$.����-

�� *& � sets the internal trigger to on.

�<< *& + sets the internal trigger to off.

�������������F�����������+�

������������F������� ��sets the internal trigger to on.

����

������� ������

�����

��������

��������

��������

Page 136: DG2030 Data Generator Programmer Manual

Command Descriptions

'#""/ DG2030 Programmer Manual

��� ���$�5���J��$��!� 7E8

The ����(-&�����F$.���� command sets the interval time for the internaltrigger. The ����(-&�����F$.���� query returns the interval time for theinternal trigger. This setting is available even if the trigger source setting isexternal.

TRIGGER

����(-&�����F$. � ����(-&�����F$.����-

����(-&�����F$.���� ��"0-�����(-&�����F$.����

��"0-�����,����'"%��where ��'"%���#�0#�/#�'#� with a range of 1.0 �s to 10.0 s.

�������������F��%"0-� ���C�

������������F������ �U�sets the interval time to 1 �s.

��� ���$��J�� 7E8

The ����(-&��F-. command sets the level on the external trigger at which thetrigger event is generated. The ����(-&��F-. query returns the level currentlyset.

TRIGGER

����(-&��?-6$')-, ����(-&���?-� ����(-&����)-

����(-&��F-. ��-E-.�����(-&��F-.

��-E-.�����,���/'"%��where �/'"%���F � 0F� with a range of –5.0 V to 5.0 V, in 0.1 V steps.

����

������� ������

�����

��������

��������

��������

����

������� ������

�����

��������

Page 137: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#""0

���������F�� ,++0F sets the level to 200 mV.

��� ���$��*�� 7E8

The ����(-&���J- command selects the rising or falling edge of the externalsignal which generates the trigger event. The ����(-&���?- query returnsstatus indicating which slope is currently selected.

TRIGGER

����(-&��?-6$')-, ����(-&��F-.� ����(-&����)-

����(-&���?- �?��"%"E- � ���$%"E-�����(-&���?-

?��"%"E-selects rising edge.

���$%"E-selects falling edge.

����������?� ?�����F� selects rising edge for trigger.

��������

����

������� ������

�����

��������

��������

Page 138: DG2030 Data Generator Programmer Manual

Command Descriptions

'#"'4 DG2030 Programmer Manual

��� ���$�*=���7E8

The ����(-&����)- command selects internal or external for the trigger signalsource. The ����(-&����)- query returns curently selected trigger signalsource.

TRIGGER

����(-&��?-6$')-� ����(-&��F-.� ����(-&���?-

����(-&����)- ��P�-&'$.R�R���-&'$.�����(-&����)-

�P�-&'$.selects external trigger.

���-&'$.selects internal trigger.

������������� �P������selects external trigger.

F���E

The A��� common query performs the self test and returns the results. If anerror is detected during self test, execution stop immediately. This commandtakes up to 90 seconds to run the self test, and the data generator will not respondto any commands and queries while it runs.

Other

����'*#%")����.% , ����'*#%")���-)%, ����'*#%")����-

A���

None

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

Page 139: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#"'"

��-#/.%�where ��-#/.%������� and ����� is one of following arguments.

+ Terminated without error.�++ Detected an error in the CPU unit.,++ Detected an error in the display unit.C++ Detected an error in the front panel unit.:++ Detected an error in the clock unit.B++ Detected an error in the trigger unit.9++ Detected an error in the sequence memory.�++ Detected an error in the pattern memory.

A��� might return ,++ to indicate that errors were detected in the display unit.

=5���?

The ���*)G command enables all front panel buttons and knob. This commandis equivalent to the command ���G ���-.

Other

���G

�����@ ���

���enables the front panel buttons and knob.

�����G ���enables the front panel buttons and knob.

��������

��������

����

������� ������

�����

��������

��������

Page 140: DG2030 Data Generator Programmer Manual

Command Descriptions

'#"'' DG2030 Programmer Manual

=�����E

The �?��0- query returns the time elapsed since the data generator waspowered on.

Other

None

�?�"0-

None

�?���� �+�9indicates the instrument has been powered on for 7.016 hours.

J��&��� 7E8

The F��2*#- command selects the long headers or the short headers to bereturned with response messages. Longer response headers enhance readabilityfor other programmers; shorter response headers provide faster bus transferspeed.

Other

>���-&

F��2*#- ��� � �<< � ������F��2*#-

�� *& '*'Q-&* E$./-selects long response header.

�<< *& Q-&* E$./-selects short response header.

Responses are decimal numbers (�����) and are defined as follows.

� Long header is currently selected.+ Short header is currently selected.

����

������� ������

�����

��������

��������

����

������� ������

�����

��������

��������

Page 141: DG2030 Data Generator Programmer Manual

Command Descriptions

DG2030 Programmer Manual '#"')

F��2��� ��sets long header for query responses.

F��2��� might return F��2��� �, which indicates that the long response header iscurrently selected.

F:��

The AK�� common command prevents the data generator from executing anyfurther commands or queries until all pending operations are completed.

Other

A�?�

AK��

None

AK��prevents the execution of any commands or queries until all pending operationscomplete.

��������

����

������� ������

�����

��������

��������

Page 142: DG2030 Data Generator Programmer Manual

Command Descriptions

'#"'+ DG2030 Programmer Manual

Page 143: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual '#"',

��������� ������� !�������

The method used for retrieving response messages differs depending on whethera GPIB interface or an RS-232-C interface is used. Figures 2-3 and 2-4 give anoverview of these methods.

ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ

ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ

ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ

ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ

ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ

�:&929 ���� :�������

������ �������������**��

�����**��

������ �������

6���� 7���������**��

6����7����

������

�����

�������� �������

����� '#)$% ��&$ ��������� ������� !�������

ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ

ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ

ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ

ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ

�:&929 ���� :�������

������ �������������**��

�����**��

������ �������

6����

6���� !�����

�����

����� '#+$%��#')'#$ ��������� ������� !�������

Page 144: DG2030 Data Generator Programmer Manual

Retrieving Response Messages

'#"'- DG2030 Programmer Manual

Figure 2-3 shows the response message retrieval operation when a GPIBinterface is used. When a query command is sent from the external controller thedata generator puts the response message for the query on the output queue. Thisresponse message cannot be retrieved unless the user performs a retrievaloperation through the external controller.

If there is a response message queued in the output queue and another querycommand is sent from the external controller before a retrieval operation for theearlier message is performed, the data generator will delete the queued responsemessage and put the response message for the more recently sent querycommand in the output queue.

The SBR (status byte register) MAV bit can be used to check the responsemessage queuing state. See Section 3 Status and Events, for more information onthe output queue, SBR, and control methods.

Figure 2-4 shows the response message retrieval operation when an RS-232-Cinterface is used. When a query command is sent from the external controller, thedata generator immediately sends the response message to the external controllerthrough an output buffer. As a result, when either a dumb terminal or a terminalemulator program running on a PC is used as the external controller, the responsemessage will be displayed on the CRT immediately after the query command istyped in.

Unlike the GPIB interface, if an RS-232-C interface is used, response messageswill never be deleted even if query commands are sent one after another.

Page 145: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual )#"

������ �� ���� ��������

This section describes how the DG2030 Data Generator reports its status andinternal events for both the GPIB and RS-232-C interfaces. It describes theelements that comprise the status and events reporting system and explains howstatus and events are handled.

The status and event reporting system reports certain significant events thatoccur within the data generator. It is made up of five registers plus two queues.Four of the registers and one of the queues are compatible with IEEE Std488.2-1987; the other register and queue are specific to Tektronix.

���������

The registers fall into two functional groups:

� Status registers which store information about the status of data generator.They include the Standard Event Status Register (SESR) and the Status ByteRegister (SBR).

� Enable registers which determine whether certain events are reported to theStatus Registers and the Event Queue. They include the Device Event StatusEnable Register (DESER), the Event Status Enable Register (ESER), and theService Request Enable Register (SRER).

The Standard Event Status Register (SESR) and the Status Byte Register (SBR)record certain types of events that may occur while the data generator is in use.IEEE Std 488.2-1987 defines these registers.

Each bit in a Status Register records a particular type of event, such as anexecution error or service request. When an event of a given type occurs, the datagenerator sets the bit that represents that type of event to a value of one. (You candisable bits so that they ignore events and remain at zero. See the EnableRegisters section on page 3-4.) Reading the status registers tells you what typesof events have occurred.

�(� ������� ���� ������ �������� 7����89 The SESR, shown in Figure 3-1,records eight types of events that can occur within the data generator. Use theA��� query to read the SESR register. Reading the register clears the bits of theregister, so that the register can accumulate information about new events.

������ ���������

Page 146: DG2030 Data Generator Programmer Manual

Status and Event Reporting

)#' DG2030 Programmer Manual

��� ��� �� �� �� ��� ���

> ? < # 2 & ' 9

����� )#"$%�(� ������� ���� ������ 7����8

����� )#"$%���� ��� �������%

&�� �����

> .�� / �*5 .;�-�� 6/% �������� �3�� �3� ���� �������� -�� �-���� �%

? =�6 . ��� ��7����/% �������� � ���� �������� �� !������ �� �3�� �����3� ���� �������� ���� ������� ���� �3� �������%

< !� .������ "����/% �������� �3�� � ����� �������� -3�*� �3� ������������ -�� ����� � ������ �� 7����% ������ ����� �������� ���*����� � ��!*� 2�< � ��� 2�'9%

# �L� ."������� "����/% �������� �3�� � ����� �������� -3�*� �3� ������������ -�� �������� � ������ �� 7����% � �������� ����� ������ ������3�� �� �3� ��**�-�� ������(

� � ��*�� ��������� ��� �3� ������� �� ��� �� �3� ���� �**�-�� !� �3����� ��������1 �� �� ��*�� ��� �3� ������1 �� �� �������� � ������3�� ����%

� "������� ���4 *��� ������*� ���� �������� �������� ���� �3���-3��3 �3��*� 3��� !�� ��7������%

"������� ����� �������� ��� *����� � ��!*� 2�? � ��� 2�'&%

2 11� .������ ������ "����/% �������� �3�� � �������������� �������������% ������ ����� �������� ��� *����� � ��!*� 2�> � ��� 2�'#%

& 6C� .����� "����/% �������� �3�� � ����� �������� �� �������� �� �����3� ����� 7����% ���3 � ����� ������ ��� �� �� �3� ��**�-�� �-� ������%

� � ������ -�� ���� �� �������� � ������� ���� �3� ����� 7������� �3����3 �� �� ���� �� ����%

� 6���� 7���� ������� -�� �*����� -3�*� �� -�� !��� ��������� �����3� ����� 7����%

' �6 .��7���� �����*/%�3� ���� �������� ���� �� ��� �3�� !��% ��7���������* .���/ �� ���� �� �3�- �3�� � �������� 3�� ��7������ �� �������!�� �����* !��4 �� �3� �����**��% .�3�� �� �3� ����� ������!�� !� �3�B �"""���% #$$%'%/

9 .)� / *� .6������ ���*���/% �������� �3�� �3� ������� �� ���*���% �3��!�� �� ��� -3� �** ���� �������� ���*��� ��**�-�� � A�?� ������%

Page 147: DG2030 Data Generator Programmer Manual

Status and Event Reporting

DG2030 Programmer Manual )#)

�(� ������ &��� �������� 7�&�89 Shown in Figure 3-2, this register recordswhether output is available in the Output Queue, whether the data generatorrequests service, and whether the SESR has recorded any events.

Use a Serial Poll or the A��2 query to read the contents of the SBR. The bits inthe SBR are set and cleared depending on the contents of the SESR, the EventStatus Enable Register (ESER), and the Output Queue. When you use a SerialPoll to obtain the SBR, bit 6 is the RQS bit. When you use the A��2 query toobtain the SBR, bit 6 is the MSS bit. Reading the SBR does not clear the bits,including the MSS bit.

���

�� ���

���

>

?

< # 2 & ' 9

?

����� )#'$%�(� ������ &��� �������� 7�&�8

����� )#'$%�&� ��� �������%

&�� �����

> .�� / ��� ����% .���� !� ��� �� F��� ��� ���� �������� �������%

? �3� �6� .��7���� �������/ !��1 -3� �!����� ���� � �����* �**% �3�-��3�� �3� ���� �������� ��7����� ������� ���� �3� :;� �����**�� .�3�� ��1�3� ��� *�� �� �������� � �3� :;� /% �3�� !�� �� �*����� -3� �3� �����*�** ���*����%

? �3� !�� .������ ������ �������/ !��1 -3� �!����� ���� A��2 7����%�������F�� �3� "� �� ��J !��� � �3� � �% .� ��3�� -����1 �3�� �������� ����� �� ��!*�� � �3� �"�� �� � ������� �� ����*�!*� �� �3� 6��������� �� !��3%/

< �3� ��& ."��� ������ ��/% �3�-� �3�� ������ �� ��!*�� �� ����� � �3��"��%'

# �3� !�J .������� ����*�!*�/ !�� % �3�-� �3�� ����� �� ����*�!*� � �3�6���� �����%

2BA 9 ��� ����% .���� !� ��� �� F��� ��� ���� �������� �������%

" :(� �������� ���� �(� ��#')'# ��������; ��� �� ���� �(� ������ �� �(� �&����� �(� F��&E 3����9 B�2����; �(�� ��� 7��&8 �� �(� ��� �&� ��� �� �� ������#���� �� ��#')'# ��������9

Page 148: DG2030 Data Generator Programmer Manual

Status and Event Reporting

)#+ DG2030 Programmer Manual

You use the DESER (Device Event Status Enable Register), the ESER (EventStatus Enable Register), and the SRER (Service Request Enable Register) toselect which events are reported to the Status Registers and the Event Queue.Each of these Enable Registers acts as a filter to a Status Register (the DESERalso acts as a filter to the Event Queue) and can allow or prevent informationfrom being recorded in the register or queue.

Each bit in an Enable Register corresponds to a bit in the Status Register itcontrols. In order for an event to be reported to its bit in the Status Register, thecorresponding bit in the Enable Register must be set to one. If the bit in theEnable Register is set to zero, the event is not recorded.

Various commands set the bits in the Enable Registers. The Enable Registers andthe commands used to set them are described below.

�(� 1����� ���� ������ ����� �������� 71����89 Shown in Figure 3-3. Thisregister controls which events of those shown are reported to the SESR and theEvent Queue. The bits in the DESER correspond to those in the SESR, as wasdescribed earlier.

Use the ���� command to enable and disable the bits in the DESER. Use the���� query to read the DESER.

��� ��� �� �� �� ��� ���

> ? < # 2 & ' 9

����� )#)$%�(� 1����� ���� ������ ����� �������� 71����8

�(� ���� ������ ����� �������� 7����89 Shown in Figure 3-4. It controls whichevents of those shown are allowed to be summarized by the Event Status Bit(ESB) in the SBR.

Use the A��� command to set the bits in the ESER. Use the A��� query to readit.

��� ��� �� �� �� ��� ���

> ? < # 2 & ' 9

����� )#+$%�(� ���� ������ ����� �������� 7����8

����� ���������

Page 149: DG2030 Data Generator Programmer Manual

Status and Event Reporting

DG2030 Programmer Manual )#,

�(� ������� ��3���� ����� �������� 7����89 Shown in Figure 3-5. It controlswhich bits in the SBR generate a Service Request and are summarized by theMaster Status Summary (MSS) bit.

Use the A��� command to set the SRER. Use the A��� query to read it. TheRQS bit remains set to one until either the Status Byte Register is read with aSerial Poll or the MSS bit changes back to a zero.

�� ���

> ? < # 2 & ' 9

����� )#,$%�(� ������� ��3���� ����� �������� 7����8

6�����

The status and event reporting system contains two queues, the Event Queue andthe Output Queue. The Event Queue which is used when operating with eitherthe GPIB and RS-232-C interface, while the Output Queue is used only whenoperating over the GPIB interface. (Instead of using an output queue, an outputbuffer buffers query-response messages for immediate transfer to the datatransmission line for RS-232-C operation.)

The Output Queue is a FIFO (First In First Out) queue that hold responsemessages while until they are requested. When a message is put in the queue, theMAV bit of the Status Byte Register (SBR) is set.

The Output Queue empties each time the data generator receives a new commandor query. Therefore the controller must read the output queue before it sends thenext command or query command or it will lose responses to earlier queries. If acommand or query command is given without taking it out, an error results andthe Output Queue is emptied.

The Event Queue is a FIFO queue which can hold up to 20 data generator-gener-ated events. When the number of events exceeds 20, the 20th event is replaced bythe event code 350, “Queue overflow”.

To read out from the Event Queue, do the following steps.

1. Send *ESR? To read out the contents of SESR. When the contents of SESRare read out, SESR is cleared allowing you to take out events from the EventQueue.

*����� 6����

���� 6����

Page 150: DG2030 Data Generator Programmer Manual

Status and Event Reporting

)#- DG2030 Programmer Manual

2. Send one of the following queries:

� ALLEv? To read out and returns all events made available by A��� .Returns both the event code and message text.

� EVENT? To read out and return the oldest event of those made availableby A��� . Returns only the event code.

� EVMsg? To read out and return the oldest event of those made availableby A��� . Returns both the event code and message text.

Reading the SESR erases any events that were made available by previous A��� reads, but that were not read from the Event Queue. Events that occur after anA��� read are put in the Event Queue but are not available until A��� is usedagain.

��������� ��3����

Figure 3-6 shows the status and event processing flow.

1. An event occurs, which causes the DESR to be checked. Based on the stateof the DESR, the following actions occur:

� If the control bit for that event is set in the DESER, the SESR bit thatcorresponds to this event becomes set to 1.

� The set control bit lets the event be placed into the Event Queue. Placingthe event in the Event Queue sets the MAV bit in the SBR to one.

� If the control bit for that event is also set in the ESER, the ESB bit ofSBR becomes set also.

2. When either bit of SBR has been set to 1 and the corresponding control bitof SRER is also set, the MSS bit of SBR becomes set and a service requestis generated for use with GPIB interface operation.

As noted earlier, the RS-232-C interface does not use the output queue;therefore, the MAV bit would not become set in the sequence just described.Rather, response messages are sent to the output buffer for immediately transferto the external controller on the output line. Message transfer is automatic and itis not necessary to use commands to retrieve these messages.

Page 151: DG2030 Data Generator Programmer Manual

Status and Event Reporting

DG2030 Programmer Manual )#.

;6� �� ��" "5" ��" �K" ��� 6;�

;6�>

������ "����

������ "��� ������ "�!*� ����������� -��3 (�"�" ���� -��3 ( �"�"O

��?

��"<

"5"#

��"2

�K"&

���'

6;�9

������� "��� ������ �������� ���� �� �*���-��3 P"��O �*��� -��3 P�)�

"��������

A

A

�6�"

�6�"

�6�"

6���������

A

A

K�"

K�"

QQ

)����6�

Q

Q

Q

Q

Q

Q

> ? < # 2 & ' 9

������� "��� ������ "�!*� �������� ���-��3 P"��O �*��� -��3 P�)�

����� �� ����

A "� ��J A A A A������

Q

6�Q

Q

Q

Q

Q

Q

> < # 2 & ' 9

������� ��7���� "�!*� �������� ��� -��3P��"O �*��� -��3 P��"

������ ��� �������� ���� -��3 �����* �** ��P�� O �*��� -��3 P�)�

���������7����:�������

Q

Q

Q

Q

Q

Q

Q

Q

Q

Q

Q

Q

Q

����� )#-$%������ �� ���� (����� ������� �������2

Page 152: DG2030 Data Generator Programmer Manual

Status and Event Reporting

)#/ DG2030 Programmer Manual

Page 153: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual )#0

!�������

Tables 3-3 through 3-11 list the status and event messages used in the GPIB/RS-232-C status and event reporting system. You use the *ESR? query to makethe messages available for dequeuing; you use the �F��� , �F�#( , and ����E queries to dequeue and return the messages. The messages return as follows:

� The �F��� query command returns the event code only. When usingthese query commands, use the *ESR? query to make the events availablefor return.

� The �F�#( , and ����E queries return both the event code and eventmessage in the following format:

<event code>, “<event message ; secondary message>”

Most messages returned have both an event message, followed by a semicolon(;), and a second message which contains more detailed information. Althoughthese secondary messages are not listed in this manual, you can use the �F�#( and ����E queries to display them.

Table 3-3 lists the definition of event codes.

����� )#)$%1������� �� ���� �����%

���� ��������� ��������� 1����������

�� "���� 9A' �� ���� �� ������

�������� &A,, .�����/

������ "����� '99A',, ������ ������

"������� "����� &99A&,, ������ �������� ������

�������������� "����� 299A2,, �����* ������ ������.0���-��� ������/

����� "����� #99A#,, ������ ���� �� 7���� ������

"������� C����� <99A<,, "������� -�����

�������� ?99A',,, .�����/

"������ "������� "����� &999A&,,, ������ ������ ������ ��������������

"�������������������� "�����

2999A2,,, ������ ������ ������ ������

�������� #999A .�����/

Page 154: DG2030 Data Generator Programmer Manual

Messages

)#"4 DG2030 Programmer Manual

Table 3-4 lists the message when the system has no events nor status to report.These have no associated SESR bit.

����� )#+$%5����� �������%

��� 1���������

+ �� ����� �� ����� R 7���� ����

� �� ����� �� ����� R �- ����� ���� A���

Table 3-5 lists the error messages generated due to improper command syntax. Inthis case, check that the command is properly formed and that it follows thesyntax.

����� )#,$%����� ������ 7!� &��$,8%

��� 1���������

�++ ������ �����

�+� ���*�� �3�������

�+, ����� �����

�+C ���*�� ��������

�+: ���� ��� �����

�+B :"� �� �**�-��

�+9 ���*�� ������ ���� ��������

�+8 ;�������� �� �**�-��

�+� ������ ��������

��+ ������ 3����� �����

��� 0����� �������� �����

��, ;������ ������ ��� *��

��C ������ 3�����

��: 0����� ������ ��� �� ����

��8 ����� �� �**�-��

�,+ ������� ���� �����

�,� ���*�� �3������� � ��!��

�,C "���� ��� *����

�,: ��� ��� ������

�,8 ������� ���� �� �**�-��

�C+ ������ �����

Page 155: DG2030 Data Generator Programmer Manual

Messages

DG2030 Programmer Manual )#""

����� )#,$%����� ������ 7!� &��$,8%7��98

��� 1���������

�C� ���*�� ������

�C: ������ ��� *��

�C8 ������ �� �**�-��

�:+ �3������� ���� �����

�:� ���*�� �3������� ����

�:: �3������� ���� ��� *��

�:8 �3������� ���� �� �**�-��

�B+ ����� ���� �����

�B� ���*�� ����� ����

�B, ����� ���� ��� *��

�B8 ����� ���� �� �**�-��

�9+ *��4 ���� �����

�9� ���*�� !*��4 ����

�98 *��4 ���� �� �**�-��

��+ "������� �����

��� ���*�� ��������

��8 "������� ���� �� �**�-��

�8+ ����� �����

�8� ���*�� ������� ����� ��������

�8C ���*�� ����� ����� ��������

�8: ����� �������� �����

Page 156: DG2030 Data Generator Programmer Manual

Messages

)#"' DG2030 Programmer Manual

Table 3-6 lists the execution errors that are detected during execution of acommand.

����� )#-$%�������� ������ 7�L� &��$+8%

��� 1���������

,++ "������� �����

,+� ���*�� -3�*� � *���*

,+, ������� *��� ��� �� ��)

,+C ������ ��������

,�+ ������� �����

,�� ������� ������

,�, ����� ������

,�C ��� ������

,�: ������� ����*��4

,�B ��� ����*��4

,,+ ;�������� �����

,,� ������� ���*���

,,, ���� ��� �� ����

,,C ��� ���3 ����

,,: �**���* �������� ��*��

,,B ;�������� ���� ����

,,9 ;�������� ���� ����

,,� ;�������� ������

,C+ ���� ������ �� ���*�

,C� ���� 7�������!*�

,:+ 0���-��� �����

,:� 0���-��� ������

,B+ ���� ������� �����

,B� ������ ���� �������

,B, ������ �����

,BC ������ �����

,B: ����� ��**

,BB ��������� ��**

,B9 ��*� ��� �� ����

,B� ��*� ��� �����

Page 157: DG2030 Data Generator Programmer Manual

Messages

DG2030 Programmer Manual )#")

����� )#-$%�������� ������ 7�L� &��$+8%7��98

��� 1���������

,B8 ����� ��������

,9+ "������� �����

,9� ���3 ����� � ��������

,9, "������� ����� �����

,9C "������� �������� �����

,�+ ����� �����

,�� ����� �����

,�, ����� �������� �����

,�C �**���* ����� *�!�*

,�: ����� �������� �����

,�B ����� �������� ��� *��

,�9 ����� �������� �����

,�� ����� ���������� �� �**�-��

,�8 ����� 3����� �� ����

,8+ ;������ �����

,8� ���� ������ ������

,8, �**���* ������ ���

,8C �**���* �����!*� ���

,8: ;������ ������*� ����

,8B ;������ ����� �����

,89 ;������ �� ���� �����

Page 158: DG2030 Data Generator Programmer Manual

Messages

)#"+ DG2030 Programmer Manual

Table 3-7 lists the internal errors that can occur during operation of the datagenerator. These errors may indicate that the data generator needs repair.

����� )#.$%������ ������ ������ 711� &��$)8%

��� 1���������

C++ �������������� �����

C�+ ������ �����

C�� ������ �����

C�, ; � ������ *���

C�C ��*�!����� ������ *���

C�: ����+����** ������ *���

C�B ����������� ������ *���

CC+ ��*������ ���*��

CB+ ����� �����*�- .���� �� ������ �3� ��" !��/

Table 3-8 lists the system event messages. These messages are generated when-ever certain system conditions occur.

����� )#/$%������ ���� �� 3���� ������%

��� 1���������

:+� ;�-�� �

:+, 6������ ���*���

:+C ��� ��7����

:+: ;�-�� ���*

:+B ��7���� �����*

:�+ ����� ���"�� ;�"�

:,+ ����� ��"������"�

:C+ ����� �"��)6�="�

::+ ����� ��"������"� ����� �������� ������

Page 159: DG2030 Data Generator Programmer Manual

Messages

DG2030 Programmer Manual )#",

Table 3-9 lists warning messages that do not interrupt the flow of com-mand execution. These messages warn you that you may get unexpected results.

����� )#0$%:����� 7�L� &��$+8%

��� 1���������

B++ "������� -����

Table 3-10 lists status messages that are specific to the data generator. Thesemessages appear when a operation starts, ends, or is in process. These messageshave no associated SESR bit.

����� )#"4$%1�����#������� ������ �������� ������%

��� 1���������

,+++ ��*� �����

,++� ��������� �� ����

,++, ��� ��� ��*��

,++C ��*� *��4��

,++: ��*� �*����� ������

,++B ��*� �*����� ����

,++9 ���*�� ��*� ���

,++� ��*� ��� �������3

,++8 �����* ������ ��**

,++� ���*�� ��*� ������

,+�+ ������ �����

,+�, ���*�� ���� � ������ �����

,+,+ ;����� ���� �����

,+,� �� ���3 ����� ����

,+,, ;����� ���� !��� ���� �����

,+,C ;����� ���� *��� �����

,+,: �����* ����� ������ ��**

,+,B ���*�� ����� ��F�

,+,9 ���*�� ����� ����

,+C+ ��7���� �����

,+C, ��� ���3 ��7���� ����

,+CC ���*�� ��7���� ����� ����

Page 160: DG2030 Data Generator Programmer Manual

Messages

)#"- DG2030 Programmer Manual

����� )#"4$%1�����#������� ������ �������� ������%7��98

��� 1���������

,+C: ���*�� ��7���� �����

,+CB ��7���� *��� �����

,+C9 �����* ��7���� ������ ��**

,+C� �� ��7����

,+C8 ���*�� ��7���� ��!��

,+C� ��7���� ����*���

,+:+ ���� �����

,+:� ���*�� ���� �����

,+:, ���*�� ���� ��*��

,+B+ ���� �����

,+B� ���*�� ���� �����

,+B, ���*�� ���� ��*��

,+9+ ���*��E����E���

,+9� :���E���E��E����

,+9, ����E���E�*�����E������

,+9C ���E���3E����

,+9: :���E���E��E����

,+9B :���E��!��E��E��E����

,+99 ���*��E����E����

,+9� ���*��E����E�����

,+�+ ���*��E!*��4E������

,+�� ��E���3E!*��4

,+�, *��4E�*�����E������

,+�C *��4E��E��E����

,+�: �**���*E!*��4E���

,+�B �**���*E!*��4E��F�

,+�9 *��4E���E�*�����E������

,+�� *��4E��E��E������

,+�8 ���E���3E!*��4E����

,+�� ���*��E!*��4E�����

,+8+ �����E�����

,+8� ����E��!*�E�����E�����

,+8, ���E���3E��!*�E����

Page 161: DG2030 Data Generator Programmer Manual

Messages

DG2030 Programmer Manual )#".

����� )#"4$%1�����#������� ������ �������� ������%7��98

��� 1���������

,�++ 0������ �����

,�+� 0������ !���

,�+, 0������ ������� �����

,�+C ��!E��7����E�����

,�C, ���E���3E��!E��7����E����

,�CC ���*��E��!E��7����E�����E����

,�C: ���*��E��!E��7����E�����

,�CB ��!E��7����E*���E�����

,�C9 �����*E��!E��7����E������E��**

,�C� ��E��!E��7����

,�C8 ��!E��7����E*��E��E��E����

,�C� ��!E��7����E����*���

,�:+ ���E���E��!E��7����

,�:� ��!E��7����E���E�����

,,++ �������E�����

Table 3-11 lists device error messages that are specific to the device.

����� )#""$%������� ������ �������� ������%

��� 1���������

C++� ���&2&�� ��� !����� �����*�-

C++, �����*E�������E�����

C++C �����*E"";�6�E���E�����

C++: �����*E"";�6�E-����E�����

C++B �����*E"";�6�E����E�����

C++9 �����*E�;:�E����������E�����

Page 162: DG2030 Data Generator Programmer Manual

Messages

)#"/ DG2030 Programmer Manual

Page 163: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual +#"

���������� ��������

This section presents sample programs that show specific examples of techniquesfor controlling the DG2030 over a GPIB interface. The sample programs arestored on the floppy disk (labeled Software Library) included with the DG2030.Since this manual does not include a listing of these programs you may want toreference those files while reading this manual. The majority of these programsare provided in C versions, and thus can be used in the Microsoft Visual C++environment. Some of the programs are also provided in Quick BASIC orLabVIEW versions.

SONY/Tektronix holds the copyright to the programs described in this section.These programs may be copied, distributed, or modified for testing, research, anddevelopment purposes. However, SONY/Tektronix assumes no responsibility orliability for any loss or damage that is caused due to the use of these programs intheir original form or in any modified form.

*������2 �� �(� ������ ��������

Reads out bit patterns from the DG2030 data memory in bit units and displaysthat data on the screen. Since standard output is used for data display, the outputcan be redirected to a file for storage. This is an example of a program that readsout bit pattern data. This program is provided in both C and BASIC versions.

Transfers bit units pattern data stored in a file by the (-%1"% program describedabove to DG2030 data memory. This is an example of a program that writes bitpattern data.

Reads out bit patterns from the DG2030 memory in word units and displays thatdata on the screen. Since standard output is used for data display, the output canbe redirected to a file for storage. This is an example of a program that reads outbit pattern data.

Transfers word units pattern data stored in a file by the (-%O*&6 programdescribed above to DG2030 data memory. This is an example of a program thatwrites bit pattern data.

Sets up a block definition section in the DG2030 data memory using data from afile prepared in advance. This program presents an example of the use of theblock definition command.

������

������

���2���

���2���

�����?

Page 164: DG2030 Data Generator Programmer Manual

Programming Examples

+#' DG2030 Programmer Manual

Sets up a group definition section in the DG2030 data memory using data from afile prepared in advance. This program presents an example of the use of thegroup definition command.

Sets up a sequence definition section in the DG2030 data memory using datafrom a file prepared in advance. This program presents an example of the use ofthe sequence definition command.

Sets up a subsequence definition section in the DG2030 data memory using datafrom a file prepared in advance. This program presents an example of the use ofthe subsequence definition command.

Supports interactive GPIB command and message exchange with the DG2030.This program allows the operator to easily confirm the actual operation of theGPIB commands. This program also serves as an example of the communica-tions protocols used between the DG2030 and the GPIB interface.

��3����� �������� ��������

These programs run on an IBM PC/AT compatible personal computer that has aNational Instruments, Inc. GPIB interface installed. The C sample programs runin the MS-DOS prompt window and require a Windows 95 operating system,and the National Instruments, Inc. GPIB95 driver software. The BASIC sampleprograms require a MS-DOS, version 5.0 or later, and the National Instruments,Inc. AT-GPIB driver software. In addition, Microsoft Visual C++, Quick BASIC4.5 or LabVIEW is required to compile and run the sample programs. Youshould provide an environment that meets these conditions and install therespective software according to their manuals.

������

�����3

������

�����

Page 165: DG2030 Data Generator Programmer Manual

Programming Examples

DG2030 Programmer Manual +#)

����� 1��? ����

The floppy disk contains the following files. The README.TXT file stored inthe floppy disk also provides you the detailed information.

������ 1���������

������9� �3� (-%1"% � ������ ��*�

������9� �3� J/%1"% � ������ ��*�

���2���9� �3� (-%O*&6 � ������ ��*�

���2���9� �3� J%O*&6 � ������ ��*�

�����?9� �3� J/%1.G � ������ ��*�

������9� �3� J/%(&J � ������ ��*�

�����39� �3� J/%#-N � ������ ��*�

������9� �3� J/%#/1 � ������ ��*�

�����9� �3� "'%)*0 � ������ ��*�

�������9� �3� :;� *�!���� ���� -��3 �3� �!��� �������

������ 1���������

������9��� �3� (-%1"% ���� ������ ��*�

������9��� �3� J/%1"% ���� ������ ��*�

��?����9��� �3� !���3 ��*� ���� �� ����*� �3��� ������� -��3 ����4 ����

Each of the sample programs uses its own unique input or output format. Severalsample files with examples of those formats are stored on the floppy disk in thisdirectory. These files are all ASCII text files and can be viewed and edited with atext editor.

������ 1���������

������9��� 6���� ��*� ��� �3� (-%1"% ���*� ������1 �� ��� ��*� ��� J/%1"%%

���2���9��� 6���� ��*� ��� �3� (-%O*&6 ���*� ������1 �� ��� ��*� ��� J/%O*&6%

��?���9��� ��� ��*� ��� �3� J/%1.G ���*� ������

������9��� ��� ��*� ��� �3� J/%(&J ���*� ������

��3���9��� ��� ��*� ��� �3� J/%#-N ���*� ������

������9��� ��� ��*� ��� �3� J/%#/1 ���*� ������

!�J 1��������

6&��� 1��������

1��� 1��������

Page 166: DG2030 Data Generator Programmer Manual

Programming Examples

+#+ DG2030 Programmer Manual

�������� �� ������� �(� ��������

Executable programs must be created by compiling the source files provided onthe floppy disk. The programs are compiled after copying the source files to thehard disk. To prevent any possibility of damaging the original during theseoperations, it is recommended that you first make a copy of the floppy disk, storethe original in a safe place, and use the copy for the following procedures.

Create a directory on the hard disk, in which you install all of the sampleprograms. This procedure assumes that the hard drive is drive c: and the floppydrive is drive a:.

In the DOS prompt window, type the following commands.

0G6"& )Z�����?��,+�

Copy the folders and files in the floppy disk with the directory tree structure keptintact. You can simply do this operation by drag and drop method in theWindows 95 Explorer window.

1. Click Drive A: (floppy) icon to display the files in the floppy disk.

2. Select Select All from the File menu. (Alternatively, you can make thisoperation by pressing Control + A keys on the keyboard.)

3. Drag the selected files in the floppy to the new directory created in step 1.

Do the following procedures to compile the sample program source code. Theprocedures are different depending on the source code type: C or BASIC.

� ���� �� ��������9

1. You need the National Instrument GPIB library file to use the sampleprogram source codes. The library is assumed to be resided in the followingdefault path.

)Z�?�2�BZ�������Z�

When you have a different environment, change the default path settingdefined in the project file or to make the directory as required.

2. To compile the C sample source codes, you need Microsoft DeveloperStudio. Select File from the Open Workspace menu in the MicrosoftDeveloper.

When the compiler environment has been installed properly, you can justclick the project workspace file in the Explorer window to compile thesample program source code.

!�?�� ���

������� �(� ����������

Page 167: DG2030 Data Generator Programmer Manual

Programming Examples

DG2030 Programmer Manual +#,

For example,

� Double-click the C:\DGSAMPLE.20A\GETBIT\GETBIT.MDP file iconin the Explorer window to open the (-%1"% sample program.

The Developer Studio will automatically be invoked and the projectworkspace will be opened.

� Select Build from the Build menu to compile the sample program sourcecode.

3. Execute the compiled programs in the MS-DOS prompt window. Type thefollowing commands, for example.

)6 )Z�����?��,+�Z���2��Z���2�� �J$&$0-%-&#�

� ���� �� &��� ��������9

1. In the MS-DOS prompt window, move to the directory in which you havecopied the sample BASIC files from the floppy disk in the proceduresdescribed in Making Copy on page 4-4. Select a name that does notduplicate an existing name in the file system.

)6 )Z�����?��,+�ZL2����

2. Next, copy the necessary files associated with the GPIB drivers. Thisprocedure assumes that the National Instruments drivers are installed in the)Z$%T(J"1 directory.

)*J5 )Z$%T(J"1ZN1$#")ZN16-).1$# )*J5 )Z$%T(J"1ZN1$#")ZN1"1*1X

3. Compile the sample programs using the batch file

0$G--\-1$%

4. If following the above procedures did not result in the compilation complet-ing correctly, check that there is adequate free space on the hard disk and thatthe compiler is installed correctly. In particular, check that the path setting iscorrect.

Page 168: DG2030 Data Generator Programmer Manual

Programming Examples

+#- DG2030 Programmer Manual

Create an appropriate directory on the hard disk. Select a name that does notduplicate an existing file or directory name in the file system. (This procedureuses the directory ”#$0J.-W6”.) This procedure assumes that the hard drive isdrive c:, that the floppy drive is drive a:, and that the current directory is anappropriate directory on the hard disk.

0G6"& #$0J.-W6)6 #$0J.-W6)*J5 $Z6$%$ZAA

������ ������� ������ �� =����

This section describes the functions of the sample programs and their use. Wordsset in italics are abstract parameters that must be replaced with actual characterstrings.

This program reads out bit pattern data from DG2030 data memory in bit unitsand displays that data on the screen. The bit number (0 to 7) to be read out isspecified as command line arguments. If multiple arguments are specifiedseparated by spaces, the bit data is displayed in the specified order. Thiscommand has the following syntax:

getbit bit_number [bit_number ...]

Bit data is read out from the whole range of memory data set up in the DG2030,that is, data is read out from address 0 to the maximum address.

The program displays the memory size, the starting address (always 0) and thebit number parameters and then the bit data for those parameters. The parametersare displayed starting with a number sign (#) character, each on its own line. Thebit data is expressed as a sequence of the characters 0 and 1 representing thosebit values. The listing below shows the output from reading out bits 3 and 2when the memory size is 90.

#size 90#start 0#bit 30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,#bit 20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,

�������� �(� ������ 1���

�����

Page 169: DG2030 Data Generator Programmer Manual

Programming Examples

DG2030 Programmer Manual +#.

Since the result is displayed on standard output, the data can be saved byredirecting the output to a file. This file can be used as an input to the J/%1"%program described below.

This program sends bit pattern data to the DG2030 data memory in bit units.Data input is from a file in a unique format. This command has the followingsyntax, with the input data file name being specified as a parameter.

putbit filename

The contents of the input file must express the data length, start address, and bitnumber parameters, as well as the bit data itself in ASCII text. Each parametermust appear on a separate line and start with a number sign (#) character. Bit datais expressed as a sequence of the characters 1 and 0 representing the bit values.This format is the same format as that produced by redirecting the output of the(-%1"% program. The file J$%1"%6$% is a sample data file in this format.

Input format checking has been dispensed with to make this sample programeasier to understand. This program may not operate correctly if the format of theinput file is not correct.

This program reads out bit pattern data from DG2030 data memory in word unitsand displays that data on the screen. The start address for the read and thenumber of words are specified as command line arguments in decimal, separatedby a space. This command has the following syntax:

getword address length

The program displays the memory size and the starting address parameters andthen the bit pattern data for those parameters. The parameters are displayedstarting with a number sign (#) character, each on its own line. The bit patterndata is displayed as 8–bit words of 1 bytes each, with each byte displayed inhexadecimal. The bytes of each word are displayed on a single line starting withthe most significant byte. The listing below shows the output for reading out thewords from addresses 0 to 90.

#size 90#start 000,00,00,00,00,00,00,00,00,08,08,00,00,00,00,00,00,00,00,0c,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,

Since the result is displayed on standard output, the data can be saved byredirecting the output to a file. This file can be used as an input to the J/%O*&6program described below.

������

��2���

Page 170: DG2030 Data Generator Programmer Manual

Programming Examples

+#/ DG2030 Programmer Manual

This program sends bit pattern data to the DG2030 data memory in word units.Data input is from a file in a unique format. This command has the followingsyntax, with the input data file name being specified as a parameter.

putword filename

The contents of the input file must express the data length and start addressparameters, as well as the bit pattern data itself in ASCII text. Each parametermust appear on a separate line and start with a number sign (#) character. The bitpattern data is expressed as 8–bit words of 1 bytes each starting with the mostsignificant byte, with each byte expressed in hexadecimal. A newline character isrequired for each data word. This format is the same format as that produced byredirecting the output of the (-%O*&6 program. See the J$%O*&66$% sampledata file.

Input format checking has been dispensed with to make this sample programeasier to understand. This program may not operate correctly if the format of theinput file is not correct.

This program sends group definition data to the DG2030 data memory. Datainput is from a file in a unique format. This command has the following syntax,with the input data file name being specified as a parameter.

putgrp filename

The contents of the input file must express the group name, the group’s highestand lowest bit numbers in ASCII with one group per line. This format corre-sponds to the parameter block supplied to the ��������?��<��� commandwith the delimiter codes replaced by the newline code used in normal text files.See the (&J6-S6$% sample data file.

Input format checking has been dispensed with to make this sample programeasier to understand. This program may not operate correctly if the format of theinput file is not correct. In particular, note that commas are used to delimit theparameters in this input file and that spaces may not be inserted.

This program sends block definition data to the DG2030 data memory. Datainput is from a file in a unique format. This command has the following syntax,with the input data file name being specified as a parameter.

putblk filename

The contents of the input file must express the block name and the block startingaddress in ASCII with one block per line. This format corresponds to theparameter block supplied to the ����2���@��<��� command with thedelimiter codes replaced by the newline code used in normal text files. See the1.G6-S6$% sample data file.

���2���

������

�����?

Page 171: DG2030 Data Generator Programmer Manual

Programming Examples

DG2030 Programmer Manual +#0

Input format checking has been dispensed with to make this sample programeasier to understand. This program may not operate correctly if the format of theinput file is not correct. In particular, note that commas are used to delimit theparameters in this input file and that spaces may not be inserted.

This program sends sequence definition data to the DG2030 data memory. Datainput is from a file in a unique format. This command has the following syntax,with the input data file name being specified as a parameter.

putseq filename

The contents of the input file must express the block name, the repeat count, theline number of the event jump destination, the trigger wait on/off setting, theevent jump on/off setting and the infinite loop on/off setting, in ASCII with onestep per line. This format corresponds to the parameter block supplied to the������L�������<��� command with the delimiter codes replaced by thenewline code used in normal text files. The first line in this file corresponds tosequence line number 0, and each following line to the sequence line numberincremented by 1. See the #-N6-S6$% sample data file.

Input format checking has been dispensed with to make this sample programeasier to understand. This program may not operate correctly if the format of theinput file is not correct. In particular, note that commas are used to delimit theparameters in this input file and that spaces may not be inserted.

This program sends subsequence definition data to the DG2030 data memory.Data input is from a file in a unique format. This command has the followingsyntax, with the input data file name being specified as a parameter.

putsub filename

The contents of the input file must express the block name and the repeat count,in ASCII with one step per line. This format corresponds to the parameter blocksupplied to the ������2��L�������<��� command with the delimiter codesreplaced by the newline code used in normal text files. The first line in this filecorresponds to subsequence line number 0, and each following line to thesubsequence line number incremented by 1. See the #/16-S6$% sample datafile.

Input format checking has been dispensed with to make this sample programeasier to understand. This program may not operate correctly if the format of theinput file is not correct. In particular, note that commas are used to delimit theparameters in this input file and that spaces may not be inserted.

This program implements interactive communication between an externalcontroller and the DG2030. That is, it transmits GPIB commands entered fromthe keyboard to the DG2030 and displays messages returned from the DG2030

�����3

������

�����

Page 172: DG2030 Data Generator Programmer Manual

Programming Examples

+#"4 DG2030 Programmer Manual

on the screen. The command has the following syntax, in which the argumentspecifies the device name registered in the GPIB driver system. The device 6-E�is used as the default if the argument is omitted.

intcom [device]

When this program is started it displays its own prompt and waits for input.When a command is entered, it executes the processing for that command andthen returns to the command wait state. It iterates this sequence until thetermination command is entered. The prompt indicates the GPIB device name, asshown below.

dev1>>

The DG2030 GPIB commands, the program’s internal (built–in) commands, andredirection commands can be used as intcom commands. These commands aredescribed in detail below.

� GPIB commands

All commands and queries defined in this manual may be used. If a questionmark character (?) appears in the input character string, the command isinterpreted as a query command. The program waits for the DG2030response, automatically extracts that response, and displays it on the screen.If an error occurs, the program extracts the event code and event messagefrom the event queue and displays them on the screen.

� Built–in commands

Intcom supports the following built–in commands:

���� ����� Reads in commands from a file one line at a time andexecutes them through the end of the file. This allows asequence of commands to be prepared in advance andused as a batch file. This differs from standard inputredirection described below in that the contents of thefile are first interpreted by this program’s commandprocessing routine. The result is that while the built–incommands and the redirection commands can be used,GPIB commands that include binary data and newlinecodes cannot be used.

(��� Displays command descriptions on the screen.

������ Returns the registers used by the event and statusreporting system to the standard state set up by thisprogram. If the set values of the GPIB commandsregisters such as DESE and *ESE are changed, thiscommand should be used as soon as possible to returntheir values to the standard values.

Page 173: DG2030 Data Generator Programmer Manual

Programming Examples

DG2030 Programmer Manual +#""

���2 ����� Outputs the contents of the file specified by filename tostandard output, i.e., displays the file on the screen.

PP Executes the immediately preceding command onceagain.

� Redirection commands

The following commands can be used to switch standard input or standardoutput to a file and thus realize communications between the DG2030 and afile or files.

N����� Sends the contents of the file specified by filename tothe DG2030 directly without modification. This allowsa sequence of commands to be prepared in advance andused as a batch file. In particular, only this commandcan be used to send GPIB commands that includebinary data blocks to the DG2030.

>����� Intercepts the data output to standard output andoutputs it to the file specified by filename. If the filealready exists, it is overwritten. If the file does notexist, a new file is created.

OO����� Intercepts the data output to standard output andoutputs it to the file specified by filename in the sameway as the ’>’ command. However, if the file alreadyexists it does not overwrite the file but rather appendsthe new data at the end of the file.

Page 174: DG2030 Data Generator Programmer Manual

Programming Examples

+#"' DG2030 Programmer Manual

Page 175: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual �A"

������� �$%(������� (����

����� �A"$%�(� 1 '4'4 (������� ���

4 " ' ) + , - .

4 5=�9 '?

�����2&

4#$

Q?#

�$9

R,?

�''&

"'

�'>

P22

"#,

�?<

6$'

�,>

3''2

'&

�'$

S2#

'<9

&??

�$&

�,$

�''#

)2 ',

T2<

)<'

?>

�$2

�,,

�''<

+# &9

U2?

+<&

1?$

�$#

�'99

�''?

,< &'

V2>

,<2

�?,

=$<

�'9'

�''>

-?

�&&

�2$

-<#

>9

J$?

�'9&

�''$

. R> &2

W2,

.<<

>'

:$>

�'92

2'',

/$ &#

7#9

/<?

B>&

L$$

('9#

�'&9

0 B�, &<

8#'

0<>

�>2

C$,

�'9<

�'&'

� � '9 &?

F#&

$<$

K>#

G,9

X'9?

M'&&

&''

��&>

Y#2

<<,

@><

H,'

?'9>

Z'&2

'& &$

;##

N?9

�>?

[,&

�'9$ '&#

1 �'2 &,

\#<

]?'

!>>

I,2

�'9,

^'&<

�'# 29

� 9#?

O?&

5>$

_,#

''9

`'&?

'< 2'

>#>

E?2

*>,

a,<

�'''

������'&>

Page 176: DG2030 Data Generator Programmer Manual

Appendix A: Character Charts

�A' DG2030 Programmer Manual

����� �A'$%���� � ��& ��� (���

&.&-

&,

44

4

44

"

4"

4

4"

"

"4

4

"4

"

""

4

""

"

&���

&+ &) &' &" �������

����

���� ���� �� � ����� �� �

4 4 4 49

5=�9 9

&9

1��'9 '?

#9 ��4

��&9 2&

?9 ��"-

429 #$

'99 ��4

Q#9 ?#

'&9 ��"-

�<9 $9

'#9 ��4

?9 ,?

'?9 ��"-

�>9 ''&

4 4 4 "' ��

�*B' '

&' ��4

1"'' '>

#' ��"

P&' 22

?' ��".

"2' #,

'9' ��"

�#' ?<

'&' ��".

6<' $'

'#' ��"

�?' ,>

'?' ��".

3>' ''2

4 4 " 4&

��L& &

&&

1''& '$

#& ��'

&& 2#

?& ��"/

'2& <9

'9& ��'

&#& ??

'&& ��"/

�<& $&

'#& ��'

�?& ,$

'?& ��"/

�>& ''#

4 4 " "2

��L2 2

&2

1)'2 ',

#2 ��)

T&2 2<

?2 ��"0

)22 <'

'92 ��)

#2 ?>

'&2 ��"0

�<2 $2

'#2 ��)

�?2 ,,

'?2 ��"0

�>2 ''<

4 " 4 4# �1

�*�# #

&# 1�

1+'# &9

## ��+

U&# 2?

?# ��'4

+2# <&

'9# ��+

1## ?$

'&# ��'4

�<# $#

'## ��+

�?# '99

'?# ��'4

�># ''?

4 " 4 "< ��

�56< <

&< ��=

5�@'< &'

#< ��,

V&< 2>

?< ��'"

,2< <2

'9< ��,

�#< ?,

'&< ��'"

=<< $<

'#< ��,

�?< '9'

'?< ��'"

�>< ''>

4 " " 4?

�@? ?

&?

�C5'? &&

#? ��-

�&? 2$

?? ��''

-2? <#

'9? ��-

#? >9

'&? ��''

J<? $?

'#? ��-

�?? '9&

'?? ��''

�>? ''$

4 " " ">

&��> >

&>

��&'> &2

#> ��.

&> 2,

?> ��')

.2> <<

'9> ��.

#> >'

'&> ��')

:<> $>

'#> ��.

�?> '92

'?> ��')

2>> '',

" 4 4 4'9 ��

&�$ $

29 ���

�5'$ &#

<9 ��/

7&$ #9

>9 ��'+

/2$ <?

''9 ��/

B#$ >&

'29 ��'+

L<$ $$

'<9 ��/

(?$ '9#

'>9 ��'+

�>$ '&9

" 4 4 "'' ��

B�, ,

2' ��1

�!', &<

<' ��0

8&, #'

>' ��',

02, <>

''' ��0

�#, >2

'2' ��',

C<, $,

'<' ��0

�?, '9<

'>' ��',

�>, '&'

" 4 " 4'&

� � '9

2&

�=&'� &?

<& ��"4

&� #&F

>& ��'-

2� <$

$''& ��"4

K#� >#

'2& ��'-

G<� ,9

'<& ��"4

X?� '9?

'>& ��'-

M>� '&&

" 4 " "'2

J� ''

22

��' &>

<2 ��""

Y& #2

>2 ��'.

2 <,

<''2 ��""

@# ><

'22 ��'.

H< ,'

'<2 ��""

?? '9>

'>2 ��'.

Z> '&2

" " 4 4'#

� '&

2#

�'� &$

<# ��"'

&� ##

;># ��'/

N2� ?9

''# ��"'

�#� >?

'2# ��'/

[<� ,&

'<# ��"'

�?� '9$

'># ��'/

>� '&#

" " 4 "'<

�� '2

2<

�'� &,

<< ��")

A&� #<

>< ��'0

]2� ?'

''< ��")

!#� >>

'2< ��'0

I<� ,2

'<< ��")

�?� '9,

'>< ��'0

^>� '&<

" " " 4'?

�*" '#

2?

��'" 29

<? ��"+

&" #?

9>? ��)4

O2" ?&

''? ��"+

5#" >$

'2? ��)4

<" ,#

_'<? ��"+

?" ''9

'>? ��)4

>" '&?`

" " " "'>

��� '<

2>

=�'� 2'

<> ��",

>&� #>

>> =5�

E2� ?2

''> ��",

*#� >,

'2> =5�

<� ,<

A'<> ��",

�?� '''

'>>

>� '&>

�=&*=�71��8

����"��"��6������

��J"���)�6������

)���"�����"��"�

��)=����"��"�

�"�6����K ����"��"�6� �6������

��?������"�( ���� ��� 52%#�',>>�""" ��� #$$%'�',$>��6 ��� ?#?�&,>2

< ��

�56< <

��& ���� 72��( ��5 ��������8

3��

����*

������*����� �3�������

@�C

Page 177: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual &A"

������� &$%�������� :����

The words in the following list are reserved words for use with the DG2030 DataGenerator.

P�)�P"�"P"��P���P6;�P6;�P;��P���P��"P�� P��:P���PC��� 6��� �����3����))�))"�����: �� )6�4 ��:3��������*�������������0HI�)"���)6�4�6;K����

���"�" ���"����")���")����"�"�"�=�-���:���������;*��")"J�*"�� *�"J"��"JN"JN�6"J���"J���"5����*���������))�6������""��"�����:�6 0�6;�0"����0�:0���)"J�*

�����������;�������0�!��������*�F�������*���"�J�*)"J�*)6��)6�4)66;)6C�����������"� ��"�����6�"���D����"6����6���**����6 �;��;�����;))*��4;6��;;� ������������������")"����"����

�";����"� *����"� ������J"�"�������")����"�������D��)6���6��6 ���������������6;� ��7�����K�����"5����"���:����C��� �)��4 ;���� ;����J�)��J"� ���C����-C6��

Page 178: DG2030 Data Generator Programmer Manual

Appendix B: Reserved Words

&A' DG2030 Programmer Manual

Page 179: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual A"

������� $%�������� ������������

This appendix lists and describes the GPIB functions and messages that theDG2030 Data Generator implements.

�������� ������

Table C–1 shows which GPIB interface functions are implemented in thisinstrument. Following the table is a brief description of each function.

����� A"$% ��& �������� ������ ������������%

�������� ���������������������� ���������

������� 0���3�4� .�0/ �0' ���*���

������ 0���3�4� .�0/ �0' ���*���

)������ .)/ )# ���� )������

������� �� �� ��*4 ������� .���/

�� ��*4 �*� ����

��*4�� .�/ �< ���� ��*4��1 �����* ;�**

������� �� ���*������������ .�)�/

������ �*��� .��/ ��' ���*���

������+)���* .�)/ �)' ���*���

������� ��7���� .��/ ��' ���*���

;���**�* ;�** .;;/ ;;9 ���

������ ������� .��/ ��' ���*���

�����**�� .�/ �9 ���

"*�������* �������� "& �3��������� ������

� Accepter Handshake (AH). Allows a listening device to help coordinate thethe proper reception of data. The AH function holds off initiation ortermination of a data transfer until the listening device is ready to receive thenext data byte.

� Source Handshake (SH). Allows a talking device to help coordinate theproper transfer of data. The SH function controls the initiation and termina-tion of the transfer of data bytes.

Page 180: DG2030 Data Generator Programmer Manual

Appendix C: Interface Specification

A' DG2030 Programmer Manual

� Listener (L). Allows a device to receive device-dependent data over theinterface. This capability exists only when the device is addressed to listen.This function uses a one-byte address.

� Talker (T). Allows a device to send device-dependent data over the interface.This capability exists only when the device is addressed to talk. The functionuses a one-byte address.

� Device Clear (DC). Allows a device to be cleared or initialized, eitherindividually or as part of a group of devices.

� Remote/Local (RL). Allows a device to select between two sources foroperating control. This function determines whether input information fromthe front panel controls (local) or GPIB commands (remote) control the datagenerator.

� Service Request (SR). Allows a device to request service from the controller.

� Controller (C). Allows a device with the capability to send the deviceaddress, universal commands, and addressed commands to other device overthe interface to do so.

� Electrical Interface (E) Identifies the type of the electrical interface. Thenotation E1 indicates the electrical interface uses open collector drivers,while E2 indicates the electrical interface uses three-state drivers.

�������� !�������

Table C–2 lists the GPIB Universal and Addressed commands that theDG2030 Data Generator implements. A brief description of each functionfollows the table.

����� A'$% ��& �������� ��������%

�������� ������� ����������

������ �*��� .��/ K��

)���* )��4��� .))6/ K��

�����* ;�** ����!*� .�;�/ K��

�����* ;�** "�!*� .�;"/ K��

;���**�* ;�** �������� .;; / ��

:� �� )���* .:�)/ K��

��*����� ������ �*��� .���/ K��

:��� "������ ������� .:"�/ K��

Page 181: DG2030 Data Generator Programmer Manual

Appendix C: Interface Specification

DG2030 Programmer Manual A)

����� A'$% ��& �������� ��������%7��98

�������� ������� ����������

��4� �����* .���/ ��

;���**�* ;�** �������� .;;�/ ��

� Device Clear (DCL). Clears (initializes) all devices on the bus that have adevice clear function, whether the controller has addressed them or not.

� Local Lockout (LLO). Disables the return to local function.

� Serial Poll Enable (SPE). Puts all devices on the bus, that have a servicerequest function, into the serial poll enabled state. In this state, each devicesends the controller its status byte, instead of the its normal output, after thedevice receives its talk address on the data lines. This function may be usedto determine which device sent a service request.

� Serial Poll Disable (SPD). Changes all devices on the bus from the serialpoll state to the normal operating state.

� Go To Local (GTL). Causes the listen-addressed device to switch fromremote to local (front-panel) control.

� Select Device Clear (SDC). Clears or initializes all listen-addressed devices.

� Group Execute Trigger (GET). Triggers all applicable devices and causesthem to initiate their programmed actions.

� Take Control (TCT).Allows controller in charge to pass control of the bus toanother controller on the bus.

� Parallel Poll Configure (PPC). Causes the listen-addressed device to respondto the secondary commands Parallel Poll Enable (PPE) and Parallel PollDisable (PPD), which are placed on the bus following the PPC command.PPE enables a device with parallel poll capability to respond on a particulardata line. PPD disables the device from responding to the parallel poll.

Page 182: DG2030 Data Generator Programmer Manual

Appendix C: Interface Specification

A+ DG2030 Programmer Manual

Page 183: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual 1A"

������� 1$% ������ �������M���� �������

The following table lists the commands affected by a factory initialization andtheir factory initialization settings.

����� 1A"$% ������ �������M�� �������%

B����� 1������ �������

1��� �������

�������;- �+++

1�&= �������

��2/(���*J����5���� +,

��2/(���*J����- +

1�� 5*��� �������

�������-)% ���

1�����C �������

���?.$52���!%'-## +�

���?.$5����G +

���?.$5���0-& +

���?.$5���2.- �

���?.$5���������� ����

���?.$5��������- �

B��1*�C �������

>��?5<���$% 2�?

>��?5?��� ���@

!�!*�C �������

����*&5���$.*(���-& �����

!*1� �������

��������- ��?���

�����?�$%- ����

Page 184: DG2030 Data Generator Programmer Manual

Appendix D: Factory Initialization Settings

1A' DG2030 Programmer Manual

����� 1A"$% ������ �������M�� �������%7��98

B����� 1������ �������

*=��=� �������

���?/%���F-. �:R�F�

���?/%���F-. �:R�F�

���?/%�>�'�����5 ++R�'#�

���?/%�>�'����@-O ++R�'#�

���?/%�>�'�<��. <���

���?/%�>�'�>��> �BR�F�

���?/%�>�'���>"1"% +

���?/%�>�'���K ++R�F�

���?/%�>�'����- <���

���?/%�>��@<��. <���

���?/%�>��@>��> �BR�F�

���?/%�>��@��K ++R�F�

���?/%�>��@���- <���

�*=�� �������

����)-���"..$%*&�P�-&'$.<��L/-')5 �+�]8R�>Q�

����)-���"..$%*&����-&'$.�<��7L/-')5

�+�]8R�>Q�

����)-���"..$%*&����-&'$.�?��.*)G ��������

����)-���"..$%*&����)- �

����)-?���#��F������2.- �

�C���! �������

����-0??��#- �

����-0���/&"%5����- +

��� �� �������

����(-&��?-6$')- >��>

����(-&�����F$.����- �<<

����(-&�����F$.���� �++R�#�

����(-&��F-. �:R�F�

����(-&���?- ?�����F�

����(-&����)- �P������

Page 185: DG2030 Data Generator Programmer Manual

Appendix D: Factory Initialization Settings

DG2030 Programmer Manual 1A)

����� 1A"$% ������ �������M�� �������%7��98

B����� 1������ �������

*�(�� �������

���� ,B9

A��� +

>���-& �

���G ����

A?�� �

A��� +

F��2*#- �

Page 186: DG2030 Data Generator Programmer Manual

Appendix D: Factory Initialization Settings

1A+ DG2030 Programmer Manual

Page 187: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual �������A"

�������

ASCIIAcronym for the American Standard Code for Information Interchange.Controllers transmit commands to the instrument using ASCII characterencoding.

AddressA 7-bit code that identifies an instrument on the communication bus. Theinstrument must have a unique address for the controller to recognize andtransmit commands to it.

BNF (Backus-Naur Form)A standard notation system for command syntax diagrams. The syntaxdiagrams in this manual use BNF notation.

ControllerA computer or other device that sends commands to and accepts responsesfrom the digitizing oscilloscope.

EOIA mnemonic referring to the control line “End or Identify” on the GPIBinterface bus. One of the two possible end-of-message terminators.

EOMA generic acronym referring to the end-of-message terminator. Theend-of-message terminator can be either an EOI or the ASCII code for linefeed (LF).

GPIBAcronym for General Purpose Interface Bus, the common name for thecommunications interface system defined in IEEE Std 488.

IEEEAcronym for the Institute for Electrical and Electronic Engineers.

QuickCA computer language (distributed by Microsoft) that is based on C.

Page 188: DG2030 Data Generator Programmer Manual

Glossary

�������A' DG2030 Programmer Manual

Page 189: DG2030 Data Generator Programmer Manual

DG2030 Programmer Manual ����A"

����

�ABSTouch, 2-19ALLEv?, 2-20ASCII, code and character charts, A–1

&Backus-Naur-Form, 2-1

*CAL?, 2-21Characters, ASCII chart, A–1*CLS, 2-22Command

BNF notation, 2-1Structure of, 2-2Syntax, 2-1, 2-19

Command errors, 3-10Commands, words reserved for, B–1

1DATA commands, DATA?, 2-22Data commands

DATA:BLOCk:ADD, 2-23DATA:BLOCk:DEFine, 2-24DATA:BLOCk:DELete, 2-25DATA:BLOCk:DELete:ALL, 2-25DATA:BLOCk:REName, 2-26DATA:BLOCk:SIZe, 2-26DATA:GROUp:ADD, 2-27DATA:GROUp:BIT, 2-28DATA:GROUp:DEFine, 2-29DATA:GROUp:DELete, 2-30DATA:GROUp:DELete:ALL, 2-30DATA:GROUp:NAME?, 2-30DATA:GROUp:REName, 2-31DATA:MSIZe, 2-32DATA:PATTern:BIT, 2-32DATA:PATTern[:WORD], 2-34DATA:SEQuence:ADD, 2-35DATA:SEQuence:DEFine, 2-36DATA:SEQuence:DELete, 2-37DATA:SEQuence:DELete:ALL, 2-37DATA:SEQuence:EVJ, 2-38DATA:SEQuence:EVJTO, 2-39

DATA:SEQuence:LOOP, 2-40DATA:SEQuence:REPeat, 2-40DATA:SEQuence:TWAIT, 2-41DATA:SUBSequence:ADD, 2-42DATA:SUBSequence:CLEAr, 2-42DATA:SUBSequence:DEFine, 2-43DATA:SUBSequence:DELete, 2-44DATA:SUBSequence:DELete:ALL, 2-44DATA:SUBSequence:REPeat, 2-45DATA:UPDate, 2-46

DATA?, 2-22DATA:BLOCk:ADD, 2-23DATA:BLOCk:DEFine, 2-24DATA:BLOCk:DELete, 2-25DATA:BLOCk:DELete:ALL, 2-25DATA:BLOCk:REName, 2-26DATA:BLOCk:SIZe, 2-26DATA:GROUp:ADD, 2-27DATA:GROUp:BIT, 2-28DATA:GROUp:DEFine, 2-29DATA:GROUp:DELete, 2-30DATA:GROUp:DELete:ALL, 2-30DATA:GROUp:NAME?, 2-30DATA:GROUp:REName, 2-31DATA:MSIZe, 2-32DATA:PATTern:BIT, 2-32DATA:PATTern[:WORD], 2-34DATA:SEQuence:ADD, 2-35DATA:SEQuence:DEFine, 2-36DATA:SEQuence:DELete, 2-37DATA:SEQuence:DELete:ALL, 2-37DATA:SEQuence:EVJ, 2-38DATA:SEQuence:EVJTO, 2-39DATA:SEQuence:LOOP, 2-40DATA:SEQuence:REPeat, 2-40DATA:SEQuence:TWAIT, 2-41DATA:SUBSequence:ADD, 2-42DATA:SUBSequence:CLEAr, 2-42DATA:SUBSequence:DEFine, 2-43DATA:SUBSequence:DELete, 2-44DATA:SUBSequence:DELete:ALL, 2-44DATA:SUBSequence:REPeat, 2-45DATA:UPDate, 2-46Debug commands

DEBug?, 2-46DEBug:SNOop?, 2-47DEBug:SNOop:DELAy?, 2-48DEBug:SNOop:DELAy:TIME, 2-49DEBug:SNOop:STATe, 2-50

Page 190: DG2030 Data Generator Programmer Manual

Index

����A' DG2030 Programmer Manual

DEBug?, 2-46DEBug:SNOop?, 2-47DEBug:SNOop:DELAy?, 2-48DEBug:SNOop:DELAy:TIME, 2-49DEBug:SNOop:STATe, 2-50Default Settings, D–1Description

GPIB, 1-1RS-232-C, 1-2

DESE, 2-51DESE command, 3-4DESER register, 3-4Diagnostic commands

DIAGnostic?, 2-52DIAGnostic:RESUlt?, 2-53DIAGnostic:SELect, 2-54DIAGnostic:STATe, 2-54

DIAGnostic?, 2-52DIAGnostic:RESUlt?, 2-53DIAGnostic:SELect, 2-54DIAGnostic:STATe, 2-54Display commands

ABSTouch, 2-19DISPlay?, 2-55DISPlay:BRIGhtness, 2-56DISPlay:CLOCk, 2-56DISPlay:DIMmer, 2-57DISPlay:ENABle, 2-58DISPlay:MENU?, 2-58DISPlay:MENU[:NAME], 2-59DISPlay:MENU:NAME?, 2-60DISPlay:MENU:STATe, 2-60DISPlay[:WINDow]:TEXT:CLEar, 2-61DISPlay[:WINDow]:TEXT[:DATA], 2-62

DISPlay?, 2-55DISPlay:BRIGhtness, 2-56DISPlay:CLOCk, 2-56DISPlay:DIMmer, 2-57DISPlay:ENABle, 2-58DISPlay:MENU?, 2-58DISPlay:MENU[:NAME], 2-59DISPlay:MENU:NAME?, 2-60DISPlay:MENU:STATe, 2-60DISPlay[:WINDow]:TEXT:CLEar, 2-61DISPlay[:WINDow]:TEXT[:DATA], 2-62

�Enable Registers, Defined, 3-1, 3-4Error, No events, 3-10Error Messages, Listed, 3-9*ESE, 2-62, 3-4

ESER register, 3-4*ESR?, 2-63*ESR? query, 3-1Event handling, 3-1Event Queue, 3-5EVENT?, 2-64EVMsg?, 2-64EVQty?, 2-65Execution Errors, 3-12, 3-14Execution errors, 3-15, 3-17Execution warning, 3-15

FACTory, 2-65Factory Initialization, D–1

GPIB

Compared to the RS-232-C, 1-2Connector, 1-3Description of, 1-1Function Layers, 1-1Installation, 1-3Installation restrictions, 1-4interface functions, C–1interface messages, C–2Setting parameters for, 1-5Standard conformed to, 1-1System configurations, 1-4

BHardcopy commands

HCOPy?, 2-66HCOPy:ABORt, 2-67HCOPy:DATA?, 2-67HCOPy:FORMat, 2-68HCOPy:PORT, 2-69HCOPy:STARt, 2-70

HCOPy?, 2-66HCOPy:ABORt, 2-67HCOPy:DATA?, 2-67HCOPy:FORMat, 2-68HCOPy:PORT, 2-69HCOPy:STARt, 2-70HEADer, 2-70

Page 191: DG2030 Data Generator Programmer Manual

Index

DG2030 Programmer Manual ����A)

�ID?, 2-71*IDN?, 2-72

�LOCk, 2-72

!Memory commands

MMEMory:CATalog:ORDer, 2-74MMEMory:CATalog[:ALL]?, 2-74MMEMory:CDIRectory, 2-75MMEMory:COPY, 2-76MMEMory:DELete:ALL, 2-76MMEMory:DELete[:NAME], 2-77MMEMory:FREE?, 2-77MMEMory:INITialize, 2-78MMEMory:LOAD, 2-78MMEMory:LOCK, 2-79MMEMory:MDIRectory, 2-80MMEMory:RDIRectory, 2-80MMEMory:REName, 2-81MMEMory:SAVE, 2-81

Message, Handling, 3-1Messages

Error, 3-9Event, 3-9

MMEMory:CATalog:ORDer, 2-74MMEMory:CATalog[:ALL]?, 2-74MMEMory:CDIRectory, 2-75MMEMory:COPY, 2-76MMEMory:DELete:ALL, 2-76MMEMory:DELete[:NAME], 2-77MMEMory:FREE?, 2-77MMEMory:INITialize, 2-78MMEMory:LOAD, 2-78MMEMory:LOCK, 2-79MMEMory:MDIRectory, 2-80MMEMory:RDIRectory, 2-80MMEMory:REName, 2-81MMEMory:SAVE, 2-81MODE, 2-82Mode commands

MODE, 2-82MODE:STATe, 2-82MODE:UPDate, 2-83

MODE:STATe, 2-82MODE:UPDate, 2-83

**OPC, 2-84*OPT?, 2-84Other Commands, *CAL?, 2-21Other commands

*CLS, 2-22*ESE, 2-62*ESR?, 2-63*IDN?, 2-72*OPC, 2-84*OPT?, 2-84*PSC, 2-103*RST, 2-104*SRE, 2-109*STB?, 2-110*TRG, 2-114*TST?, 2-120*WAI, 2-123ALLEv?, 2-20DESE, 2-51EVENT?, 2-64EVMsg?, 2-64EVQty?, 2-65FACTory, 2-65HEADer, 2-70ID?, 2-71LOCk, 2-72RUNNing, 2-104STARt, 2-110STOP, 2-111UNLock, 2-121UPTime?, 2-122VERBose, 2-122

OUTPUT commands, OUTPut?, 2-85Output commands

OUTPut:CH<n>:ASSIGn, 2-86OUTPut:CH<n>:DELAy, 2-86OUTPut:CH<n>:DESKew, 2-87OUTPut:CH<n>:DESKew:RESET, 2-88OUTPut:CH<n>:FALl, 2-88OUTPut:CH<n>:FALl? RANge, 2-89OUTPut:CH<n>:FALl? VALid, 2-90OUTPut:CH<n>:HIGH, 2-90OUTPut:CH<n>:INHibit, 2-91OUTPut:CH<n>:LOW, 2-92OUTPut:CH<n>:RELEase, 2-92OUTPut:CH<n>:RISe, 2-93OUTPut:CH<n>:RISe? RANge, 2-94OUTPut:CH<n>:RISe? VALid, 2-94OUTPut:CHCLK:FALl, 2-95OUTPut:CHCLK:FALl? RANge, 2-96

Page 192: DG2030 Data Generator Programmer Manual

Index

����A+ DG2030 Programmer Manual

OUTPut:CHCLK:FALl? VALid, 2-96OUTPut:CHCLK:HIGH, 2-97OUTPut:CHCLK:LOW, 2-98OUTPut:CHCLK:RISe, 2-98OUTPut:CHCLK:RISe? RANge, 2-99OUTPut:CHCLK:RISe? VALid, 2-100OUTPut:DEFine, 2-100OUTPut:ELEVel, 2-102OUTPut:ILEVel, 2-102

Output Queue, 3-5OUTPut?, 2-85OUTPut:CH<n>:ASSIGn, 2-86OUTPut:CH<n>:DELAy, 2-86OUTPut:CH<n>:DESKew, 2-87OUTPut:CH<n>:DESKew:RESET, 2-88OUTPut:CH<n>:FALl, 2-88OUTPut:CH<n>:FALl? RANge, 2-89OUTPut:CH<n>:FALl? VALid, 2-90OUTPut:CH<n>:HIGH, 2-90OUTPut:CH<n>:INHibit, 2-91OUTPut:CH<n>:LOW, 2-92OUTPut:CH<n>:RELEase, 2-92OUTPut:CH<n>:RISe, 2-93OUTPut:CH<n>:RISe? RANge, 2-94OUTPut:CH<n>:RISe? VALid, 2-94OUTPut:CHCLK:FALl, 2-95OUTPut:CHCLK:FALl? RANge, 2-96OUTPut:CHCLK:FALl? VALid, 2-96OUTPut:CHCLK:HIGH, 2-97OUTPut:CHCLK:LOW, 2-98OUTPut:CHCLK:RISe, 2-98OUTPut:CHCLK:RISe? RANge, 2-99OUTPut:CHCLK:RISe? VALid, 2-100OUTPut:DEFine, 2-100OUTPut:ELEVel, 2-102OUTPut:ILEVel, 2-102

�Programming Examples, 4-1*PSC, 2-103

6Query, Structure of, 2-2Queue

Event, 3-5Output, 3-5

�Register

DESER, 3-4ESER, 3-4SESR, 3-1SRER, 3-5

Registers, Status, 3-1Reserved words, B–1RS-232-C

Cable wiring, 1-8Common connectors for, 1-6Compared to the GPIB, 1-2Connector location, 1-7Connector pin assignments, 1-8Description of, 1-2Installation, 1-6Setting Parameters of, 1-9

*RST, 2-104RUNNing, 2-104

�Serial poll, 3-3SESR register, 3-1Source commands

SOURce:EVENT:ENABle, 2-105SOURce:OSCillator:EXTernal:FREQuency, 2-106SOURce:OSCillator:SOURce, 2-108SOURce:OSCillator[:INTernal]:FREQuency, 2-107SOURce:OSCillator[:INTernal]:PLLlock, 2-108SOURce[:OSCillator]?, 2-106

SOURce:EVENT:ENABle, 2-105SOURce:OSCillator:EXTernal:FREQuency, 2-106SOURce:OSCillator:SOURce, 2-108SOURce:OSCillator[:INTernal]:FREQuency, 2-107SOURce:OSCillator[:INTernal]:PLLlock, 2-108SOURce[:OSCillator]?, 2-106*SRE, 2-109*SRE command, 3-5SRER register, 3-5STArt, 2-110Status, 3-1Status and error commands

DESE, 3-4*ESE, 3-4*ESR?, 3-1*SRE, 3-5

Page 193: DG2030 Data Generator Programmer Manual

Index

DG2030 Programmer Manual ����A,

*STB?, 3-3Status and events, processing of, 3-6Status Registers, Defined, 3-1*STB?, 2-110*STB? query, 3-3STOP, 2-111System commands

SYSTem:DATE, 2-111SYSTem:PPAUse, 2-112SYSTem:SECurity:IMMediate, 2-112SYSTem:SECurity:STATe, 2-113SYSTem:TIME, 2-114

System events, 3-14SYSTem:DATE, 2-111SYSTem:PPAUse, 2-112SYSTem:SECurity:IMMediate, 2-112SYSTem:SECurity:STATe, 2-113SYSTem:TIME, 2-114

�*TRG, 2-114TRIGer?, 2-115Trigger commands

TRIGger?, 2-115TRIGger:IMPedance, 2-116TRIGger:INTERVal?, 2-116TRIGger:INTERVal:STATe, 2-117

TRIGger:INTERVal:TIME, 2-118TRIGger:LEVel, 2-118TRIGger:SLOpe, 2-119TRIGger:SOURce, 2-120

TRIGger:IMPedance, 2-116TRIGger:INTERVal?, 2-116TRIGger:INTERVal:STATe, 2-117TRIGger:INTERVal:TIME, 2-118TRIGger:LEVel, 2-118TRIGger:SLOpe, 2-119TRIGger:SOURce, 2-120*TST?, 2-120

=UNLock, 2-121UPTime?, 2-122

JVERBose, 2-122

:*WAI, 2-123Where to find other information, iii

Page 194: DG2030 Data Generator Programmer Manual

Index

����A- DG2030 Programmer Manual