Loads the Counter with the Counter Port value
Gx5732LoadCounterCounterPort (nHandle, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5732 board. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The Counter Port direction must be set to Input prior to calling this function.
The following set the counter port and loads it value to counter 0.
Gx5732SetCounterPort(nHandle, GX5732_COUNTER_PORT_DIRECTION_IN GX5732_COUNTER0, GX5732_COUNTER_PORT_LOAD_CONTROL_IMMEDIATE, &nStatus);
Gx5732LoadCounterCounterPort(nHandle, &nStatus);