GxCntGetChannelImpedance

Purpose

Returns the specified channel input impedance.

Syntax

GxCntGetChannelImpedance (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 impedance mode:
  • 0 = GXCNT_IMPEDANCE_1MOHMS: Selects 1MOhm impedance (default).
  • 1 = GXCNT_IMPEDANCE_50OHMS: Selects 50 Ohms impedance.
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

GxCntSetChannelImpedance, GxCntGetErrorString