niHSDIO_ConfigureDigitalEdgeStartTrigger

NI Digital Waveform Generator/Analyzer

niHSDIO_ConfigureDigitalEdgeStartTrigger

Specific Function

C Function Prototype

ViStatus niHSDIO_ConfigureDigitalEdgeStartTrigger (ViSession vi, ViConstString source, ViInt32 edge);

Purpose

Configures the Start trigger for edge triggering.

Parameters

Name Type Description
vi ViSession This handle identifies your instrument session. vi was obtained from the niHSDIO_InitAcquisitionSession or niHSDIO_InitGenerationSession function.
source ViConstString You may specify any valid source terminal for this trigger. Trigger voltages and positions are only relevant if the source of the trigger is from the front panel connectors.

Refer to NIHSDIO_ATTR_DIGITAL_EDGE_START_TRIGGER_SOURCE for possible values.
edge ViInt32 Specifies the edge to detect.

Defined Values

NIHSDIO_VAL_RISING_EDGE (12)—Rising edge trigger.
NIHSDIO_VAL_FALLING_EDGE (13)—Falling edge trigger.

Default Value: NIHSDIO_VAL_RISING_EDGE

Return Value