Command Descriptions
3-196 AWG710&AWG710B Arbitrary Waveform Generator User Manual
start_point is the location of the first data point to extract fr om the input file.
This is an integer value. The starting po in t value must be less than or equal to the
ending point value or an error occurs during compilation.
end_point is the location of the last data point to extract from the input file. This
is an integer value. The ending point value must be greater than or equal to the
starting point value or an error occurs during compilation.
Example "shortsin.wfm" = extract("sine.wfm", 0, 511)
For (Control Statement)
The for (control statement) provides a structure for execut ing one or more equat ion
expressions a defined number of times.
Group Control
Syntax for <var> = <start> to <end> <expr> next
for <var> = <start> to <end> step <incr> <expr> next
Arguments var is a variable name to contain the fo r loop count v alue. A common va riable name
used for this purpose is i. As long as the value of var is true (between the start and
end values, inclusive), the program executes the expression(s) in the for loop.
When var is false (var > end for incr > 0, a nd var < end for incr > 0), program flow
jumps to the line immediately following n ext.
start is a value or expression that defines the starting numbe r (i nteger or real) of
the for statement loop count.
end is a value or expression that def i nes th e end nu mber (int eg er or re al) of the for
statement loop count.
NOTE. This command lets you create a waveform f il e that does not meet the
instrument waveform minimum data requirement (minimum of 960 points, evenly
divisible by four). If you create such a file, open it in a waveform editor, and then
attempt to save it, the instrument displays a dialog box asking you to correct the
problem. If you attempt to load the waveform in the Setup screen, the instrument
displays an error message stating that the file does not have enough data points.