2470 High Voltage SourceMeter Instrument Reference Manual
Section 8: Triggering
2470-901-01 Rev. A /
May
2019
8-37
Branching blocks
A branch block goes to a trigger block other than the sequential execution block. For example, if you
need to set up the trigger model to wait for an event under some conditions but not others, you can
use a branch block to define when the wait block is enabled. You can use the Branch Once block to
create a bypass and skip the wait block the first time the trigger model runs. This makes it possible to
avoid deadlock when multiple instruments are being synchronized and each one is waiting for
notification from the other one to start the trigger model.
Loop Counter block
When trigger model execution reaches a loop counter block, it goes to a specified block until the
count value is reached. When the counter exceeds the count value, trigger model execution ignores
the branch, continues to the next block in the sequence, and resets the counter.
The counter is reset to 0 when the trigger model starts. It is incremented each time trigger model
execution reaches the counter block.
If you are using remote commands, you can query the counter. The counter is incremented
immediately before the branch compares the actual counter value to the set counter value. Therefore,
the counter is at 0 until the first comparison. When the trigger model reaches the set counter value,
branching stops and the counter value is one greater than the setting.
When you select the Loop Counter block, the following options are available.
Setting
Description
Branch to Block
The block number to execute when the counter is less than the
Target Count value.
Target Count
The number of times to repeat.
On event block
The branch-on-event block branches to a specified block when a specified trigger event occurs. If the
trigger event has not yet occurred when trigger model execution reaches the branch-on-event block,
the trigger model continues to execute the blocks in the normal sequence. After the trigger event
occurs, the next time trigger model execution reaches the branch-on-event block, it goes to the
branching block.
Trigger events are reset when the trigger model is at the start block, so only events that occur after
you start trigger model execution are detected by the branch-on-event block. The event is also reset
after trigger model execution completes the branching block.
When you select the branch-on-event block, the following options are available.
Setting
Description
Branch to Block
The block number to execute when the specified event occurs.
Event
The event that causes this block to branch.