Gx5732SetTerminalCountPortConnection

Purpose

Connects the specified counter or all counters terminal count to the Terminal Count Port.

Syntax

Gx5732SetTerminalCountPortConnection (nHandle, pnCounterOrAllTerminalCountsAndClocks, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5732 board.
nCounterOrAllTerminalCountsAndClocks
SHORT
Counter Port connection:
0. GX5732_TERMINAL_COUNT_OUPUT_COUNTER0: Counter 0.
1. GX5732_TERMINAL_COUNT_OUPUT_COUNTER1: Counter 1.
2. GX5732_TERMINAL_COUNT_OUPUT_COUNTER2: Counter 2.
3. GX5732_TERMINAL_COUNT_OUPUT_COUNTER3: Counter 3.
4. GX5732_TERMINAL_COUNT_OUPUT_ALLCOUNTERS_AND_CLOCKS: All counters terminal and clock 0 and 1 are connected
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Use the Gx5732GetTerminalCountPortConnection to retrieve the Counter Port connection.

Example

The following example connects counter 2 to the Terminal Port connection:

 

Gx5732SetTerminalCountConnection (nHandle, GX5732_TERMINAL_COUNT_OUPUT_COUNTER2, &nStatus);

 

See Also

Gx5732GetTerminalCountPortConnection, Gx5732GetCounterValue