Gx5731ModuleGetDirectionSource

Applies To

GX5711, GX5712

Purpose

Returns the Module’s channels direction source.

Syntax

Gx5731ModuleGetDirectionSource (nHandle, nPort, pnSource, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5731 board.
nPort
SHORT
Specified Module's port number:
0. GX5731_PORT0: Module port 0
1. GX5731_PORT1: Module port 1
2. 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.

Comments

The data that flows through the Module can be monitor by calling Gx5731GetPort.

Example

The following example returns module’s port 0 direction source:

 

SHORT nSource, nStatus;

Gx5731ModuleGetDirectionSource (nHandle, GX5731_PORT0, &nSource, &nStatus)

 

See Also

Gx5731ModuleSetDirectionSource, Gx5731ModuleGetDirection, Gx5731GetPort, Gx5731ModuleSetInternalStrobeSource