Skip to main content
Open topic with navigation CAPL Functions » VT System » vtsStartTrigger

vtsStartTrigger

Valid for: CANoe DE • CANoe:lite DE

Function Syntax

Description

The function starts the specified trigger. It also resets the event counter system variable that is associated to the trigger to 0. To use a trigger it has to be configured using the functions vtsSetTriggerParams and vtsSetTriggerParamsEx. You can find additional information about VT System triggers on the page Triggers.

Parameters

  • Target: Name of the system variable/namespace that will be affected by this function call.
  • Trigger: Specifies which trigger is configured. VT1004/VT1104 module: Values see eVTSTrigger.

Return Values

  • 0: Successful call
  • -1: Call error
  • -2: The namespace on which the command was called does not exist, is not a valid VT System namespace or does not support this command.

Example

Example: CAPL Test Module The following example shows how triggers can be used to measure the width of a pulse, that is the distance between the rising and falling edge of a pulse.
StartTrigger