Tektronix AWG610 Manual de usuario Pagina 317

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 466
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 316
Programming Examples
AWG610 Arbitrary Waveform Generator User Manual
3-199
Figure 3-60: Waveform generated by the Example 2 equation
The following example creates one sequence file and four waveforms.
delete(”test.seq”)
size=512
clock=1e9
num=4
’write sequence file header
write(”test.seq”,”3002\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 512 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.
Example 3
Vista de pagina 316
1 2 ... 312 313 314 315 316 317 318 319 320 321 322 ... 465 466

Comentarios a estos manuales

Sin comentarios