Applies To
GC5050, GX5050.
Purpose
Returns the current operation mode.
Syntax
DioGetOperationMode (nHandle, pnMode, pnStatus)
Parameters
Name |
Type |
Comments |
nHandle |
SHORT |
Master or Slave board handle. |
pnMode |
PSHORT |
Operation mode are: OP_MODE_NORMAL: 0x0 (default) OP_MODE_FAST_ARM: 0x10 OP_MODE_FAST_TRIG: 0x20 OP_MODE_FAST_HALT: 0x40 |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
Comments
The function accelerates the execution of ARM and/or TRIG commands when the running in frequencies less then 200KHz. The command is executed immediately with no delays or testing.
Users can accelerate the execution time of the ARM,.TRIG and HALT commands by setting (or combing) the operation modes.
Operation modes can be combined using Boolean OR operation.
Example
The following example sets the GC5050 operation mode for fast ARM and TRIG and then returned the operation mode:
SHORT nStatus, nOutputState;
DioSetOperationMode (nHandle, OP_MODE_FAST_ARM | OP_MODE_FAST_TRIG, &nStatus);
DioGetOperationMode (nHandle, &nOutputState, &nStatus);
See Also
DioSetOperationMode, DioGetErrorString