User's Manual
Table Of Contents
- Title page
- Table of Contents
- General Safety Summary
- Preface
- Getting Started
- Operating Basics
- Reference
- Reference
- Menu Structures
- The Setup Menu Screen
- The Graphical Waveform Editor
- The Pattern Editor
- Quick Editing
- The Table Editor
- The Equation Editor
- The Sequence Editor
- The APPL Menu
- The UTILITY Window
- External Keyboards
- Setting General Purpose Knob Direction
- Formatting a Floppy Disk
- Displaying Disk Usage
- Screen Display Enable/Disable
- Focused Color
- Displaying Instrument Status
- Internal Clock (Date and Time)
- Resetting the Instrument
- Connecting to a GPIB Network
- Ethernet Networking
- Hardcopy
- Calibration and Diagnostics
- Upgrading the System Software
- Capturing Waveforms
- Waveform Programming Language
- Command Descriptions
- Programming Examples
- File Conversion
- File Management
- FG Mode
- Waveform Mixing Mode
- Synchronous Operation Mode (AWG710B only)
- Appendices
- Appendix A: Specifications (AWG710B)
- Appendix A: Specifications (AWG710)
- Appendix B: Performance Verification (AWG710B)
- Conventions
- Self Tests
- Performance Tests
- Operating Mode Tests
- Amplitude and Offset Accuracy Tests (Normal Out), (except option 02)
- Amplitude, Offset Accuracy and Rise Time Tests (Direct DA Out), (except option 02)
- Amplitude, Offset Accuracy and Rise Time Tests (for option 02)
- Pulse Response Tests (Normal Out), (except option 02)
- Trigger Input Tests
- Event Input and Enhanced Mode Tests
- External Clock Input and VCO Out Output Tests
- VCO OUT Output Frequency and 10 MHz Reference Input Tests
- Marker Output Tests
- Synchronous Operation Tests
- Appendix B: Performance Verification (AWG710)
- Conventions
- Self Tests
- Performance Tests
- Operating Mode Tests
- Amplitude and Offset Accuracy Tests (Normal Out), (except option 02)
- Amplitude, Offset Accuracy and Rise Time Tests (Direct DA Out), (except option 02)
- Amplitude, Offset Accuracy and Rise Time Tests (for option 02)
- Pulse Response Tests (Normal Out), (except option 02)
- Trigger Input Tests
- Event Input and Enhanced Mode Tests
- 1/4 Clock Frequency and 10 MHz Reference Input Tests
- Marker Output Tests
- Appendix C: Inspection and Cleaning
- Appendix D: Sample Waveforms
- Appendix E: File Transfer Interface Outline
- Appendix F: Miscellaneous
- Appendix G: Sequence File Text Format
- Index

AWG710&AWG710B Arbitrary Waveform Generator User Manual 3-207
Programming Examples
The following eight equation programming examples are described below.
Example 1
The example below creates three waveform files: a.wfm, b.wfm and c.wfm.
size = 2000
"a.wfm" = cos (2 * pi * scale)
size = 1512
"b.wfm" = cos (2 * pi * scale)
"c.wfm" = "a.wfm" * "b.wfm"
The first and third lines define the waveform record length (in points). You can
change the record length any time within an equation; all created files use the
last–set size value. When you do not define the waveform record length, the
instrument uses the default length of 1000.
The second line generates the waveform a.wfm with 2000 data points. The scale is
the system–used variable to fit the generated waveform within the ±1.0 vertical
scale range.
The waveform c.wfm has the point size of 1512 and is generated by multiplying the
a.wfm and b.wfm waveforms.
Examples Key points to be learned
Example 1 Describes how to create waveform file, and how to read and write waveform files.
Example 2 Describes how to use for loop and if conditional branch statements.
Example 3 Describes how to put comments, and how to create sequence file.
Example 4 Describes how to use marker data and how to use the binary relational operations in
the assignment statement.
Example 5 Describes how to use digital filter functions.
Example 6 Describes how to use data() and code() functions.
Example 7 Describes how to handle specific point data in the waveform file using the extract(),
join() and integ() function, and also the for and if statement.
Example 8 Creates the equation file to generate the four waveforms and two sequence files used
in the Sequence editor tutorial in the Getting Started section.
Others Refer to Appendix D:Sample Waveforms for more equation examples. Most of the
waveforms in the appendix were created by the listed equations.