GX5961, GX5964, File
Programs driver output enable settings.
GtDio6xOutputSetDriverDisableMode (nHandle, nInputDisable, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Session identifier:● Board handle is used when communicating with the hardware. The Board handle session identifier is returned by calling GtDio6xInitialize or GtDio6xSetupInitialization. ● File handle is used when communicating with a file. The File handle session identifier is returned by calling GtDio6xFileOpen. |
nInputDisable |
SHORT |
Used to return the driver enable setting.0. GTDIO6X_DISABLE_OUTPUT_ON_SYSTEM_CLOCK: Driver will disable when transitioning from an output vector code to an input vector code on the system clock rising edge. 1. GTDIO6X_DISABLE_OUTPUT_ON_PHASE_ASSERT: Driver will disable when transitioning from an output vector code to an input vector code on the phase assert rising edge. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
When a channel transitions from an output vector code to an input vector code, the driver output enable can be set to disable at the beginning of the Vector (System Clock) or when the phase assert signal transitions (rising edge).
The following example sets the driver enable control setting to phase assert, and return the settings:
SHORT nStatus;
SHORT nDriverOutputControl;
GtDio6xOutputSetDriverDisableMode(nHandle, GTDIO6X_DISABLE_OUTPUT_ON_PHASE_ASSERT, &nStatus);
GtDio6xOutputGetDriverDisableMode(nHandle, &nDriverOutputControl, &nStatus);
If nDriverOutputControl== GTDIO6X_DISABLE_OUTPUT_ON_SYSTEM_CLOCK
printf(“Driver will disable when transitioning from an output vector code to an input vector code on the system clock rising edge.”);
else
printf(“Driver will disable when transitioning from an output vector code to an input vector code on the phase assert rising edge”);