Gx5732LoadCounterCounterPort

Purpose

Loads the Counter with the Counter Port value

Syntax

Gx5732LoadCounterCounterPort (nHandle, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5732 board.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The Counter Port direction must be set to Input prior to calling this function.

Example

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);

 

See Also

Gx5732GetCounterPort, Gx5732SetCounterPort