GxCntSetChannelImpedance

Purpose

Sets the specified channel input impedance.

Syntax

GxCntSetChannelImpedance (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
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 sets channel A impedance to 1MOhm:

 

SHORT nHandle, nMode, nStatus;

GxCntSetChannelImpedance (nHandle, GXCNT_CHANNEL_A, GXCNT_IMPEDANCE_1MOhmS, &nStatus)

 

See Also

GxCntGetChannelImpedance, GxCntGetErrorString