NIHSDIO_ATTR_SCRIPT_TRIGGER_TYPE

NI Digital Waveform Generator/Analyzer

NIHSDIO_ATTR_SCRIPT_TRIGGER_TYPE

Specific Attribute

Data
type
Access Applies to Coercion High-Level Functions
ViInt32 R/W Script Trigger None niHSDIO_ConfigureDigitalEdgeScriptTrigger
niHSDIO_ConfigureDigitalLevelScriptTrigger
niHSDIO_ConfigureSoftwareScriptTrigger
niHSDIO_DisableScriptTrigger

Description

Specifies the Script trigger type. Depending upon the value of this attribute, more attributes may be needed to fully configure the trigger.

This attribute is only valid for generation sessions.

Defined Values:

NIHSDIO_VAL_NONE (28) The operation does not use a Script trigger. The data operation starts immediately after you call niHSDIO_Initiate.
NIHSDIO_VAL_DIGITAL_EDGE (29) The Script trigger asserts when a digital edge is detected. The source of the digital edge is specified with NIHSDIO_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_SOURCE, and the active edge is specified with NIHSDIO_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_EDGE.
NIHSDIO_VAL_DIGITAL_LEVEL (30) The Script trigger is active when the level of the Script trigger matches the desired level. The source of the Script trigger is specified with NIHSDIO_ATTR_DIGITAL_LEVEL_SCRIPT_TRIGGER_SOURCE, and the desired level is specified with NIHSDIO_ATTR_DIGITAL_LEVEL_SCRIPT_TRIGGER_WHEN.
NIHSDIO_VAL_SOFTWARE (32) The Script trigger is not recognized software asserts it. You may create a software trigger by calling niHSDIO_SendSoftwareEdgeTrigger with the appropriate Script trigger as the trigger name, for example, "ScriptTrigger0". You can assert the software trigger by calling niHSDIO_SendSoftwareEdgeTrigger with NIHSDIO_VAL_SCRIPT_TRIGGER as the trigger name.