DioSetupClkStrobeExternalGateMode

Applies To

GX5280, GX5290, GX5290e, GX5295 File

Purpose

Sets the specified DIO board Clock or Strobe external gate mode.

Syntax

DioSetupClkStrobeExternalGateMode (nHandle, nClkStrobe, nMode, pnStatus)

Parameters

Name
Type
Comments
nMasterHandle
SHORT
DIO board or File board handle.
nClkStrobe
SHORT
0. DIO_INTERNAL_CLOCK: Internal Clock.
1. DIO_INTERNAL_STROBE: Internal Strobe
nMode
SHORT
External gate mode can be:
0. Disabled
1. Enabled.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function enables full control on the timing of when data is captured or clocked out for each DIO board that resides in the same domain using external input signal.

DIO_INTERNAL_CLOCK:

Enables or disables gating the internal Clock of the specified DIO board. For this mode to be active the direction of all the board’s channels must be set to output. When the mode is enabled the External Clock Enable input (J3 pin 28) will gate the clock of the specified DIO board. When the External Clock Enable input is set to low the specified DIO board’s internal Clock will be active and the DIO will run, when the External Clock Enable input will be high (default state since the input has IS pulled up to VCC). The DIO will be in Pause state.

DIO_INTERNAL_STROBE:

Enables or disables gating the internal Strobe of the specified DIO board. For this mode to be active the direction of all the board’s channels must be set to input. When the mode is enabled the External Strobe Enable input (J3 pin 29) will gate the strobe of the specified DIO board. When the External Strobe Enable input is set to low the specified DIO board’s internal Strobe will be active and the DIO will run, when the External Strobe Enable input will be high (default state since the input has IS pulled up to VCC). The DIO will be in Pause state.

Example

The following example enables the internal clock external gate mode:

 

SHORT nStatus;

DioGetClkStrobeExternalGateMode (nHandle, DIO_INTERNAL_CLOCK, 1, &nStatus);

 

See Also

DioGetClkStrobeExternalGateMode, DioSetupClkStrobeDelay, DioSetupClkStrobeSource, DioGetClkStrobeDelay, DioGetErrorString