GxCntGetCommonInput

Applies To

GTX2210, GTX2220, GTX2230

Purpose

Returns the common input mode state and active input channel.

Syntax

GxCntGetCommonInput (nHandle, pbEnable, pnActiveInputChannel, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
pbEnable
PBOOL
Returns the common input mode:
  • 0 = FALSE: Common input mode is disabled.
  • 1 = TRUE: Common input mode is enabled.
pnActiveInputChannel
PSHORT
Specified active channel for the common input:
  • 0 = GXCNT_CHANNEL_A: Channel A
  • 1 = GXCNT_CHANNEL_B: Channel B.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

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.

Example

The following example returns the common input mode state and active input channel:

 

SHORT nActiveInputChannel;

BOOL bEnable;

GxCntGetCommonInput(nHandle, &bEnable, &nActiveInputChannel, &nStatus);

 

See Also

GxCntSetCommonInput, GxCntGetErrorString