Applies To
GC5050, GX5050, GX5150
Purpose
Enables or disables the output of group A and B.
Syntax
DioLevelShifterSetOutputMode (nHandle, nMode, pnStatus)
Parameters
Name |
Type |
Comments |
nHandle |
SHORT |
Board handle. |
nMode |
SHORT |
Output State can be as follow: 0 Disabled (Ttri-state). 1 Enabled. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Comments
In disable mode, all channels will be in Tri-state high impedance mode (disconnected).
Example
The following example enables the output State of the group 1:
SHORT nStatus;
DioLevelShifterSetOutputMode (nHandle, 1, &nStatus);
See Also
DioLevelShifterGetOutputState, DioLevelShifterSetByLogicFamily, DioGetErrorString