Applies To
GX5150, GX5280, GX5290, GX5290e, GX5295, File
Purpose
Sets the External PAUSE and TRIG lines mode.
Syntax
DioSetupExternalPauseAndTriggerMode (nMasterHandle, nTriggerMode, pnStatus)
Parameters
Name |
Type |
Comments |
nMsterHandle |
SHORT |
Master or File board handle. |
nTriggerMode |
PSHORT |
Trigger modes are as follow:
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Comments
If the selection is edge, then the rising edge of the external signal will create the event. If the selection is level, then a low level will enable the rising edge internal clock to create the event .This function applies to the External PAUSE and External TRIG lines located on the Timing connector.
Example
The following example sets the External PAUSE and TRIG lines to trigger when low to high transient occurs, call the DioGetExternalPauseAndTriggerMode function to verify the setting.
SHORT nStatus, nMode;
DioSetupExternalJumpATriggerMode (nHandle, 1, &nStatus);
DioGetExternalJumpATriggerMode (nHandle, &nMode, &nStatus);
See Also