Sets the specified channel filter mode.
GxCntSetChannelFilterMode (nHandle, nChannel, nMode, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
nChannel |
SHORT |
Specified Channel number:
|
nMode |
SHORT |
Sets channel’s filter mode:
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The Filter should be enabled when measuring low frequencies (less than 20KHz) superimposed with a high-frequency noise. When enabled the Filter adds a delay in microseconds after first trigger is detected. The counter will then disregard any additional trigger events for the duration of the delay.
The following example sets channel A filter mode to auto:
SHORT nHandle, nStatus;
GxCntGetChannelFilterMode (nHandle, GXCNT_CHANNEL_A, GXCNT_FILTER_AUTO, &nStatus)