Tektronix AWG610 User Manual

Page 319

Advertising
background image

Programming Examples

AWG610 Arbitrary Waveform Generator User Manual

3-201

Figure 3-62: Sequence generated by the Example 3 equation

NOTE. The equation/text editor has a viewer that displays the waveforms after
the compile has been performed. However, this viewer cannot display the
sequence. Use the sequence editor to confirm the results.

The following example shows how to use boolean relational operations between
a waveform and its marker data.

delete(”MOD01.WFM”)
delete(”MOD02.WFM”)

“Mod.wfm” = sin (2 *

p * scale)

”MOD01.WFM” = ”MOD.WFM”

”MOD01.WFM”.marker1 = ”MOD01.WFM” >= 0.5
”MOD01.WFM”.marker2 = ”MOD01.WFM” <= –0.5

”MOD02.WFM” = (”MOD01.WFM”.marker1 = ”MOD01.WFM”.marker2)
/ 2

The boolean relational operation results in a 1 value if the condition is true, and
a 0 value if the condition is false. Therefore the MOD01.WFM marker1 signal is
1 if the waveform data is greater than or equal to 0.5, and 0 for all other values.

Example 4

Advertising