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

vtsSetTriggerParamsEx

Valid for: CANoe DE • CANoe:lite DE

Function Syntax

Description

The function configures additional parameters for VT System triggers. Basic parameters are configured using vtsSetTriggerParams. 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 module: Values see eVTSTrigger.
  • MinPulseWidth: Specifies that the triggers fire only if no opposite edge or level event occurs within the specified time after the triggering event. This parameter is transferred to the VT System with nanosecond resolution. Valid values: 0 (0.0s)..1.0 (1.0s).
  • RestartTime: Specifies the delay after which a trigger is restarted by another trigger. This parameter is transferred to the VT System with nanosecond resolution. Valid values: 0 (0.0s)..1.0 (1.0s).
  • PreTriggers: This bitfield specifies preconditions for the configured trigger. Every set bit specifies a trigger that must be active before the configured trigger is activated. VT1004 module: 8 lowermost bits can be used.
  • RestartTriggers: This bitfield specifies the triggers that restart the configured trigger. VT1004 module: 8 lowermost bits can be used.
  • ThresholdEventCount: If this parameter is set to a value k higher than 0, trigger events are only visible and the event counter for the trigger is only incremented when the triggering event has occurred k + 1 times. Valid values: 0..4294967295.
  • ExtSettings: This bitfield specifies additional settings. Values see eVTSTriggerEdgeType.

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.
SetTriggerParamsEx