GxCntChannelAutoSet

Purpose

Automatic adjustment of the board setting in order to obtain a stable reading.

Syntax

GxCntChannelAutoSet (nHandle, nChannel, 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.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The Autoset function significantly eases instrument operation through Automatic adjustment of the board setting for almost any signal. Manual adjustments might be needed for special cases (e.g. complex signals). The Autoset function will try to obtain a stable measurement with the best settings. It automatically adjusts the trigger level mode, trigger level, AC/DC coupling, filter mode and filter value.

Calling this function will reset the board and apply settings to the specified channel. If the function is unable to find suitable settings upon return the function will reset the board.

Further adjustments to the board settings might be needed in order to increase accuracy. This function is mostly useful for low frequencies waveforms (less then 20KHz) with a slow slew rate or noisy waveform were the default setting would have difficulties to adjust.

Example

The following example Auto sets channel A:

 

SHORT nHandle, nStatus;

GxCntChannelAutoSet(nHandle, GXCNT_CHANNEL_A, &nStatus)

 

See Also

GxCntGetChannelCouplingMode, GxCntGetChannelFilterMode, GxCntSetChannelFilterValue, GxCntGetChannelAFrequencyRange, GxCntGetChannelImpedance, GxCntGetChannelSlope, GxCntGetErrorString