niHSDIO_ConfigureDigitalLevelScriptTrigger

NI Digital Waveform Generator/Analyzer

niHSDIO_ConfigureDigitalLevelScriptTrigger

Specific Function

C Function Prototype

ViStatus niHSDIO_ConfigureDigitalLevelScriptTrigger (ViSession vi, ViConstString triggerID, ViConstString source, ViInt32 triggerWhen);

Purpose

Configures the Script trigger for level 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_LEVEL_SCRIPT_TRIGGER_SOURCE for possible values.
triggerWhen ViInt32 Specifies the active level for the desired trigger.

Defined Values

NIHSDIO_VAL_HIGH (34)—Trigger is active while its source is high level.
NIHSDIO_VAL_LOW (35)—Trigger is active while its source is low level.

Default Value: NIHSDIO_VAL_HIGH

Return Value