DioGetExternalPauseAndTriggerMode

Applies To

GX5150, File.

Purpose

Return the External PAUSE and TRIG lines mode.

Syntax

DioGetExternalPauseAndTriggerMode (nMasterHandle, pnTriggerMode, pnStatus)

Parameters

Name

Type

Comments

nMsterHandle

SHORT

Master or File board handle.

pnTriggerMode

PSHORT

Trigger modes are as follow:

0  External PAUSE and TRIG lines trigger when low level is present (default).

1  External PAUSE and TRIG lines trigger when low to high transient occur. 

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 DioGetExternalJumpATriggerMode function to verify the setting.

 

SHORT   nStatus, nMode;

DioSetupExternalJumpATriggerMode (nHandle, 1, &nStatus);

DioGetExternalJumpATriggerMode (nHandle, &nMode, &nStatus);

 

See Also

DioSetupExternalJumpATriggerMode, DioGetErrorString