Programming Examples
AWG710&AWG710B Arbitrary Waveform Generator User Manual 3-211
Figure 3-66: Sequence generated by the Example 3 equation
Example 4
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.
Likewise, the marker2 signal is 1 if the waveform data is less than or equal to -0.5,
and 0 for all other values.
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.