Gx5733ModuleSetDirection

Applies To

GX5711, GX5712

Purpose

Sets the Module’s channels direction.

Syntax

Gx5733ModuleRun (nHandle, nPort, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5733 board.
nPort
SHORT
Module port 0 (GX5733_PORT0) only.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Calling this function will take the Module from Run to Halt state. Use Gx5733ModuleGetState in order to monitor the module state.

Example

The following example set module port 0 to RUN mode:

 

SHORT nPolarity, nStatus;

Gx5733ModuleRun (nHandle, GX5733_PORT0, &nStatus);

 

See Also

Gx5733ModuleGetDirection, Gx5733ModuleSetDirectionSource, Gx5733ModuleGetPort, Gx5733ModuleSetInternalStrobeSource