GxCntSetChannelCouplingMode

Purpose

Sets the specified coupling mode.

Syntax

GxCntSetChannelCouplingMode (nHandle, nChannel, nMode, 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.
nMode
SHORT
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 impedance mode:

 

SHORT nHandle, nMode, nStatus;

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

 

See Also

GxCntGetChannelCouplingMode, GxCntGetErrorString