Tektronix AWG610 Portable Generator User Manual


 
AWG610 Arbitrary Waveform Generator User Manual
3-175
Waveform Programming Language
This section describes the Waveform Programming Language (WPL) syntax,
rules, and command descriptions. There are also a number of programming
examples at the end of this section.
Command Syntax
This manual uses the Backus-Naur Form (BNF) notation, shown in Table 3–46,
to describe commands.
Table 3-46: BNF symbols and meanings
Symbol Meaning
<> Defined element
[] Optional; can be omitted
Previous element(s) may be repeated
Following are the general syntax rules for writing an equation file:
H All spaces, line feeds, and tab codes are ignored unless in a string.
H The concept of a line does not exist.
H All data from a single quote (’) to the end of a line is regarded as a comment.
H Alphabetical characters are case-insensitive unless in a string.
H The concept of cursor does not exist. You always work with the whole
waveform.
H File attribute functions are unavailable in a waveform expression.
H The maximum length of a string is 256 characters, including spaces. Even if
two or more strings are linked by colons (:) in a string expression, the whole
length of the linked strings must not exceed 256 characters or an error will
occur.
H The total length of strings in the whole equation program can be up to 1,000.
(The length is the sum of the number of characters of the string(s) plus a
character used as the internal terminal code.)
General Syntax Rules