niHSDIO_ConfigureDigitalLevelScriptTrigger
- Updated2023-02-21
- 3 minute(s) read
ViStatus = niHSDIO_ConfigureDigitalLevelScriptTrigger ( ViSession vi, ViConstString triggerID, ViConstString source, ViInt32 level);
Purpose
Configures the Script trigger for level 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:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Trigger When | 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. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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:
|
