niHSDIO_ConfigureDigitalEdgeScriptTrigger

NI Digital Waveform Generator/Analyzer

niHSDIO_ConfigureDigitalEdgeScriptTrigger

Specific Function

C Function Prototype

ViStatus niHSDIO_ConfigureDigitalEdgeScriptTrigger (ViSession vi, ViConstString triggerID, ViConstString source, ViInt32 edge);

Purpose

Configures the Script trigger for edge triggering. This function is only valid for generation sessions that use scripting.

Parameters

Name Type Description
vi ViSession This handle identifies your instrument session. vi was obtained from niHSDIO_InitGenerationSession.
triggerID ViConstString Identifies which Script trigger this function configures.

Defined Values

"ScriptTrigger0"
"ScriptTrigger1"
"ScriptTrigger2"
"ScriptTrigger3"

Default Value: ScriptTrigger0
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_SCRIPT_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