niHSDIO_ConfigureDigitalEdgeScriptTrigger
- Updated2023-02-21
- 3 minute(s) read
ViStatus = niHSDIO_ConfigureDigitalEdgeScriptTrigger
Purpose
Configures the Script trigger for edge triggering. This function is valid only for generation sessions that use scripting.
"ScriptTrigger3" is not available when using the NI 6544/6545/6547/6548.
Related topics:
Parameters
| Input | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| vi | ViSession | Identifies your instrument session. vi was obtained from the niHSDIO_InitAcquisitionSession or niHSDIO_InitGenerationSession function. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Trigger ID | ViConstString | Identifies which Script trigger this function configures. Defined Values "ScriptTrigger0" "ScriptTrigger1" "ScriptTrigger2" "ScriptTrigger3" |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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.
Defined 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. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Return Value
| Name | Type | Description | ||||||||
| Status | ViStatus | Reports the status of this operation. To obtain a text description of the status code, call the niHSDIO_error_message function. To obtain additional information concerning the error condition, use the niHSDIO_GetError and niHSDIO_ClearError functions. The general meaning of the status code is as follows:
|
