Returns which counter or all counters terminal count is connected to the Terminal Count Port.
Gx5732GetTerminalCountPortConnection (nHandle, pnCounterOrAllTerminalCountsAndClocks, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5732 board. |
pnCounterOrAllTerminalCountsAndClocks |
PSHORT |
Returned 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 Gx5732SetTerminalCountPortConnection to change the Counter Port connection.
The following example returns the Terminal Port connection:
SHORT nConnection, nStatus;
Gx5732GetTerminalCountConnection(nHandle, &nConnection, &nStatus);