Gx5731ModuleRun

Applies To

GX5701, GX5702, GX5704

Purpose

Sets the specified Module to Run mode.

Syntax

Gx5731ModuleRun (nHandle, nPort, 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.   
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 Gx5731ModuleGetState in order to monitor the module state.

Example

The following example set module port 0 to RUN mode:

 

SHORT nPolarity, nStatus;

Gx5731ModuleRun (nHandle, GX5731_PORT0, &nStatus);

 

See Also

Gx5731ModuleGetState, Gx5731ModuleHalt, Gx5731ModuleSetExtStrobePolarity, Gx5731ModuleSetExtStrobeEnablePolarity, Gx5731ModuleSetStrobeSource, Gx5731ModuleSetInternalStrobeSource