Gx5731ModuleSetDirection

Applies To

GX5711, GX5712

Purpose

Sets the Module’s channels direction.

Syntax

Gx5731ModuleRun (nHandle, nPort, nGroup, nDirection, 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.   
nGroup
SHORT
Specified Module's port group number:
0. GX5731_MODULE_GROUP0: Module port group 0
1. 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 0
Module's channels direction is from TTL to differential
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

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

Example

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);

 

See Also

Gx5731ModuleGetDirection, Gx5731ModuleSetDirectionSource, Gx5731GetPort,  Gx5731ModuleSetInternalStrobeSource