GX5711, GX5712
Returns the Module’s channels direction source.
Gx5731ModuleGetDirectionSource (nHandle, nPort, pnSource, 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. |
pnSource |
PSHORT |
Returned Module’s channels direction source:0. GX5731_MODULE_DIRECTION_SOURCE_INTERNAL: Module’s channels direction is set internally (software).1. GX5731_MODULE_DIRECTION_SOURCE_EXTERNAL: Module’s channels direction is set externally. |
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 module’s port 0 direction source:
SHORT nSource, nStatus;
Gx5731ModuleGetDirectionSource (nHandle, GX5731_PORT0, &nSource, &nStatus)
Gx5731ModuleSetDirectionSource, Gx5731ModuleGetDirection, Gx5731GetPort, Gx5731ModuleSetInternalStrobeSource