Overview
This example explains how to use the Counter Digital Debounce Filter for the 660x family. This filter dismisses any input pulse shorter than the duration of a filter pulse.
Description
The code first configures the Counter Task to count Edges. The Counter being used is specified then a property node is used to enable a digital filter. Once the filter is enabled, the minimum pulse width needs to be specified in order to allow for very small signals to be processed while still allowing for a debounce time.
Requirements to Run
Software
- LabVIEW 8.6 or compatible
- DAQmx 8.7.2 or compatible
Hardware
- Examples is written for the NI 660x Digital I/O (DIO) family. May also work with other NI DAQ devices, untested.
Steps to Implement or Execute Code
- Download and Open the Example
- Verify your hardware is connected to your computer
- Confirm the proper information is entered as the counter identifier
- Specify the minimum Pulse Width that count edges will count
- Enable Digital Filtering
- Run the code
Additional Information or References
Block Diagram

**This document has been updated to meet the current required format for the NI Code Exchange.**