Main Content

setTriggerPosition

Set position of trigger detection cycle within capture buffer

Since R2024a

Description

setTriggerPosition(hub,value) sets the position of the trigger detection cycle within the capture buffer to the value for the first data capture IP connected to the hub data capture hub object.

setTriggerPosition(hub,value,DataCaptureName=dataCaptureIPName) sets the trigger position for a data capture IP specified by dataCaptureIPName.

Input Arguments

collapse all

Data capture hub object that interacts with each data capture IP, specified as a dataCaptureHub object.

By default, the clock cycle when the trigger is detected is the first sample of the capture buffer. You can change the relative position of the trigger detection cycle within the capture buffer. A nondefault trigger position means that some samples are captured before the trigger occurs. You can set this parameter to an integer from 0 to window depth–1, inclusive. When the trigger position is equal to window depth–1, the last sample corresponds to the cycle when the trigger occurs. For more information, see Triggers.

Name of the data capture IP, specified as a character vector or string scalar. The default value for this argument is "generatedIPName1", where generatedIPName1 is the name of the first data capture IP set by the Generated IP name parameter of the FPGA Data Capture Component Generator tool.

Version History

Introduced in R2024a