GTX2210, GTX2220, GTX2230
Returns the common input mode state and active input channel.
GxCntGetCommonInput (nHandle, pbEnable, pnActiveInputChannel, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
pbEnable |
PBOOL |
Returns the common input mode:
|
pnActiveInputChannel |
PSHORT |
Specified active channel for the common input:
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
In the common input mode, nActiveInputChannel input is connected internally to both channels.
Enabling this mode allows the user to make measurements. E.g., measure time interval between two events on the same input signal without the need to connect both inputs.
|
Note: There is a restriction when using GxCntSetCommonInput. When using a common input, the trigger slopes for channel A and channel B cannot be the same. |
The following example returns the common input mode state and active input channel:
SHORT nActiveInputChannel;
BOOL bEnable;
GxCntGetCommonInput(nHandle, &bEnable, &nActiveInputChannel, &nStatus);