GX5711, GX5712
Returns the Module’s channels direction.
Gx5731ModuleGetDirection (nHandle, nPort, nGroup, pnDirection, 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 0.1. GX5731_MODULE_GROUP1: Module port group 1. |
pnDirection |
PSHORT |
Returns 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: Module’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 Gx5731GetPort.
The following example returns the module’s port 0 group 0 direction:
SHORT nDirection, nStatus;
Gx5731ModuleGetDirection (nHandle, GX5733_PORT0, GX5731_MODULE_GROUP0,&nDirection, &nStatus)
Gx5731ModuleSetDirection, Gx5731ModuleSetDirectionSource, Gx5731GetPort, Gx5731ModuleSetInternalStrobeSource