
Using Events in the Sequencer
This example shows how to define an event (a rising edge trigger) and how to use this event in the
sequence.
First, the event is defined,
and
its mask is queried:
*RST
:TRIG:INP0:IDEN?
:EVEN:TYPE "risingedge",LEV
:EVEN:SOUR "risingedge","TRIGGER0"
:EVEN:LEV:RIS "risingedge",ON
:EVEN:LEV:FALL "risingedge",OFF
:EVEN:LEV:HIGH "risingedge",OFF
:EVEN:LEV:LOW "risingedge",OFF
:EVEN:MASK? "risingedge"
The query
:TRIG:INP0:IDEN?
is required to determine the identifier of the trigger module input
(it is “TRIGGER0”).
The query
:EVEN:MASK? "risingedge"
returns the value 1,
i.e.
only bit 0 is set. This mask can
now be used in the sequencer, for example in this sequence:
start: PLAY pattern1, 100
BRAN !1, start
PLAY pattern2, 100
GOTO start
In this case, the event mask (“1”) is inverted,
i.e.
the branch is taken if the event did not fire.
Therefore, the sequencer plays “pattern1” in a loop, until the event (rising edge on trigger input 0) is
detected.
BIT-3000 User Manual
83