IviSpecAn_ConfigureTriggerSource

CVI/LabWindows IVI Class Driver

IviSpecAn_ConfigureTriggerSource

IviSpecAnTrigger Capability Group

C Function Prototype

ViStatus IviSpecAn_ConfigureTriggerSource (ViSession vi, ViInt32 triggerSource);

Purpose

This function specifies the trigger source that causes the spectrum analyzer to leave the Wait-for-Trigger state.

Parameters

Name Type Description
vi ViSession The ViSession handle that you obtain from the IviSpecAn_init or IviSpecAn_InitWithOptions function. The handle identifies a particular instrument session.

Default Value: None

triggerSource ViInt32 Specifies the source of the trigger signal that causes the analyzer to leave the Wait-For-Trigger state. The driver uses this value to set the IVISPECAN_ATTR_TRIGGER_SOURCE attribute.

Valid Values:
- IVISPECAN_VAL_TRIGGER_SOURCE_EXTERNAL - The
spectrum analyzer waits until it receives a trigger on the
external trigger connector.

- IVISPECAN_VAL_TRIGGER_SOURCE_IMMEDIATE - The
spectrum analyzer does not wait for a trigger of any kind.

- IVISPECAN_VAL_TRIGGER_SOURCE_SOFTWARE - The spectrum analyzer
waits until the Send Software Trigger function executes.

- IVISPECAN_VAL_TRIGGER_SOURCE_AC_LINE - The
spectrum analyzer waits until it receives a trigger on the
AC line.

- IVISPECAN_VAL_TRIGGER_SOURCE_VIDEO - The spectrum
analyzer waits until it receives a video level.

Default value: IVISPECAN_VAL_TRIGGER_SOURCE_EXTERNAL

Return Values