Connects the specified counter or all counters terminal count to the Terminal Count Port.
Gx5732SetTerminalCountPortConnection (nHandle, pnCounterOrAllTerminalCountsAndClocks, pnStatus)
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. |
Use the Gx5732GetTerminalCountPortConnection to retrieve the Counter Port connection.
The following example connects counter 2 to the Terminal Port connection:
Gx5732SetTerminalCountConnection (nHandle, GX5732_TERMINAL_COUNT_OUPUT_COUNTER2, &nStatus);