GxCntGetChannelCouplingMode

Purpose

Returns the specified coupling mode.

Syntax

GxCntGetChannelCouplingMode (nHandle, nChannel, pnMode, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a counter board.
nChannel
SHORT
Specified Channel number:
  • 0 = GXCNT_CHANNEL_A: Channel A
  • 1 = GXCNT_CHANNEL_B: Channel B.
pnMode
PSHORT
Returned channel’s input coupling mode:
  • 0 = GXCNT_COUPLING_AC: AC Coupling mode (default).
  • 1 = GXCNT_COUPLING_DC: DC Coupling mode.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example returns channel A coupling mode:

 

SHORT nHandle, nMode, nStatus;

GxCntGetChannelImpedance (nHandle, GXCNT_CHANNEL_A, &nMode, &nStatus)

 

See Also

GxCntSetChannelCouplingMode, GxCntGetErrorString