GX5701, GX5702, GX5704
Sets the specified Module to Run mode.
Gx5731ModuleRun (nHandle, nPort, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5731 board. |
nPort |
SHORT |
Specified Module's port number:0. GX5731_PORT0: Module port 01. GX5731_PORT1: Module port 12. GX5731_PORT2: Module port 2. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Calling this function will take the Module from Run to Halt state. Use Gx5731ModuleGetState in order to monitor the module state.
The following example set module port 0 to RUN mode:
SHORT nPolarity, nStatus;
Gx5731ModuleRun (nHandle, GX5731_PORT0, &nStatus);
Gx5731ModuleGetState, Gx5731ModuleHalt, Gx5731ModuleSetExtStrobePolarity, Gx5731ModuleSetExtStrobeEnablePolarity, Gx5731ModuleSetStrobeSource, Gx5731ModuleSetInternalStrobeSource