Enables or disables the counter to count.
Gx5732SetCounterEnable (nHandle, nCounter, pucValue, pbTerminalCountState, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5732 board. |
nCounter |
SHORT |
Counter number:0. GX5732_COUNTER0: Counter 0.1. GX5732_COUNTER1: Counter 1.2. GX5732_COUNTER2: Counter 2.3. GX5732_COUNTER3: Counter 3. |
bEnable |
BOOL |
Enabled state:0. FALSE: Disable the counter.1. TRUE: Enable the counter. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Use the Gx5732GetCounterEnable to retrieve whether the counter is enabled.
The following enables counter 3:
Gx5732SetCounterEnable (nHandle, GX5732_COUNTER3, TRUE, &nStatus);