Tektronix AWG710 Ventilation Hood User Manual


 
Programming Examples
AWG710&AWG710B Arbitrary Waveform Generator User Manual 3-209
Figure 3-64: Waveform generated by the Example 2 equation
Example 3
The following example creates one sequence file and four waveforms.
delete("test.seq")
size=1000
clock=1e9
num=4
'write sequence file header
write("test.seq","3002A\n")
write("test.seq","LINES ":num:"\n")
for i = 1 to num
'create a waveform file
"test":i:".wfm" = sin(2 * pi * i * scale)
'add line to sequence file
rep = num * i
write("test.seq","\"test":i:".wfm\",\"\",":rep:"\n")
next
The first line is the statement for deleting the existing waveform. If that file does
not exist, then no action is taken.
The size and clock keywords are the system valuables representing the waveform
record length, in points, and the sampling clock frequency. They are set to 1000
points and 1.0 GS/s in the above example.
The comment text on line 5 starts with a single quotation (') character. Comment
text is effective until the end of the line containing the single–quote character.