Automatic adjustment of the board setting in order to obtain a stable reading.
GxCntChannelAutoSet (nHandle, nChannel, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
nChannel |
SHORT |
Specified Channel number:
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
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.
The following example Auto sets channel A:
SHORT nHandle, nStatus;
GxCntChannelAutoSet(nHandle, GXCNT_CHANNEL_A, &nStatus)
GxCntGetChannelCouplingMode, GxCntGetChannelFilterMode, GxCntSetChannelFilterValue, GxCntGetChannelAFrequencyRange, GxCntGetChannelImpedance, GxCntGetChannelSlope, GxCntGetErrorString