Gx5731ModuleSetDirectionSource

Applies To

GX5711, GX5712

Purpose

Sets the Module’s channels direction source.

Syntax

Gx5731ModuleSetDirectionSource (nHandle, nPort, nSource, 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.   
nSource
SHORT
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 sets module’s port 0 direction source to External:

 

SHORT nStatus;

Gx5731ModuleSetDirectionSource (nHandle, GX5731_PORT0, GX5731_MODULE_DIRECTION_SOURCE_INTERNAL, &nStatus)

 

See Also

Gx5731ModuleGetDirectionSource, Gx5731ModuleGetDirection, Gx5731GetPort,  Gx5731ModuleSetInternalStrobeSource