Tektronix AWG710B Manuale Utente Pagina 339

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 580
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 338
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.
Vedere la pagina 338
1 2 ... 334 335 336 337 338 339 340 341 342 343 344 ... 579 580

Commenti su questo manuale

Nessun commento