Skip to main content
Open topic with navigation

CAPL Functions » VT System » vtsSetTriggerParams

Function Syntax

Description

The function configures basic parameters for triggers. Further parameters can be set with the function vtsSetTriggerParamsEx. You can find additional information about VT System triggers on the page Triggers.

Parameters

  • Target: Specifies which trigger is configured: Values see eVTSTrigger
  • Trigger: Specifies which trigger is configured (VT1004 module: 1-8)
  • SourceChannel: Specifies to which channel the configured trigger is connected: Values see eVTSTriggerSourceChannel
  • EdgeType: Values see eVTSTriggerEdgeType. If a triggered is configured to level type using vtsSetTriggerParamsEx this parameter sets which level is detected.

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