Tektronix AWG710 Ventilation Hood User Manual


 
Programming Examples
3-216 AWG710&AWG710B Arbitrary Waveform Generator User Manual
size = 1000
clock = 1e8
num = 4
' Sub-sequence
write("SUBSEQ.SEQ", "MAGIC 3002A\n")
write("SUBSEQ.SEQ", "LINES ":num:"\n")
write("SUBSEQ.SEQ", "\"SQUARE.WFM\",\"\",40000\n")
write("SUBSEQ.SEQ", "\"RAMP.WFM\",\"\",60000\n")
write("SUBSEQ.SEQ", "\"TRIANGLE.WFM\",\"\",60000\n")
write("SUBSEQ.SEQ", "\"SINE.WFM\",\"\",30000\n")
' Main sequence
write("MAINSEQ.SEQ", "MAGIC 3002A\n")
write("MAINSEQ.SEQ", "LINES ":num:"\n")
write("MAINSEQ.SEQ", "\"SUBSEQ.SEQ\",\"\",2,1,0,0\n")
write("MAINSEQ.SEQ", "\"RAMP.WFM\",\"\",0,0,0,-1,0\n")
write("MAINSEQ.SEQ", "\"TRIANGLE.WFM\",\"\",40000,0,0,4,1\n")
write("MAINSEQ.SEQ", "\"SINE.WFM\",\"\",60000,0,0,0,0\n")
write("MAINSEQ.SEQ", "TABLE_JUMP
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n")
write("MAINSEQ.SEQ", "LOGIC_JUMP -1,-1,-1,-1,\n")
write("MAINSEQ.SEQ", "JUMP_MODE LOGIC\n")
write("MAINSEQ.SEQ", "JUMP_TIMING ASYNC\n")
write("MAINSEQ.SEQ", "STROBE 0\n")
' Standard functions
"GAUSSN.WFM" = noise()
"SINE.WFM" = sin(2 * pi * scale)
"RAMP.WFM" = 2 * scale -1
"TRIANGLE.WFM" = tri(2 * pi * scale)
"SQUARE.WFM" = sqr(2 * pi * scale)
See Figure 2-45 on page 2-75 to see the contents of the subseq.seq file, and
Figure 2-49 on page 2-80 to see the contents of the mainseq.seq file.
Figure 3-70 on page 3-217 shows the gaussn.wfm and ramp.wfm waveforms
created in above equation.
Refer to Appendix G: Sequence File Text Format for more information.