3.11.1. Trigger Example 1: Custom Trigger Position
Actions to the acquisition buffer can accept an optional post-count argument. This post-count argument enables you to define a custom triggering position for each segment in the acquisition buffer.
The following example shows how to apply a trigger position to all segments in the acquisition buffer. The example describes a triggering flow for an acquisition buffer split into four segments. If each acquisition segment is 64 samples in depth, the trigger position for each buffer is at sample #34. The acquisition stops after all segments are filled once.
if (c1 == 3 && condition1) trigger 30; else if ( condition1 ) begin segment_trigger 30; increment c1; end
Each segment acts as a non-segmented buffer that continuously updates the memory contents with the signal values.
The Data tab displays the last acquisition before stopping the buffer as the last sample number in the affected segment. The trigger position in the affected segment is then defined by N – post count fill, where N is the number of samples per segment.
Did you find the information on this page useful?