GX5711, GX5712
Sets the Module’s channels direction.
Gx5731ModuleRun (nHandle, nPort, nGroup, nDirection, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5731 board. |
nPort |
SHORT |
Specified Module's port number:0. GX5731_PORT0: Module port 01. GX5731_PORT1: Module port 12. GX5731_PORT2: Module port 2. |
nGroup |
SHORT |
Specified Module's port group number:0. GX5731_MODULE_GROUP0: Module port group 01. GX5731_MODULE_GROUP1: Module port group 1 |
nDirection |
SHORT |
Module's channels direction mode:0. GX5731_MODULE_DIRECTION_DIFFERENTIAL_TO_TTL:Module's channels direction is from differential to TTL.1. GX5731_MODULE_DIRECTION_TTL_TO_DIFFERENTIAL: port 0Module's channels direction is from TTL to differential |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The data that flows through the Module can be monitor by calling Gx5731ModuleGetPort.
The following example sets module's port 0 group 0 direction from Differential to TTL:
SHORT nStatus;
Gx5731ModuleSetDitection (nHandle, GX5731_PORT0, GX5731_MODULE_GROUPO,
GX5731_MODULE_DIRECTION_DIFFERENTIAL_TO_TTL, &nStatus);
Gx5731ModuleGetDirection, Gx5731ModuleSetDirectionSource, Gx5731GetPort, Gx5731ModuleSetInternalStrobeSource