Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
4 ratings:
 3.25 out of 5     Rate this Document

Enabling the Digital Debounce Filters for TIO Devices in NI-DAQmx

Hardware: Counter/Timers (TIO)>>Devices>>PCI-6601, Counter/Timers (TIO)>>Devices>>PCI-6602, Counter/Timers (TIO)>>Devices>>PCI-6608, Counter/Timers (TIO)>>Devices>>PCI-6624, Counter/Timers (TIO)>>Devices>>PXI-6601, Counter/Timers (TIO)>>Devices>>PXI-6602, Counter/Timers (TIO)>>Devices>>PXI-6608, Counter/Timers (TIO)>>Devices>>PXI-6624, Multifunction DAQ (MIO)>>M Series

Problem:
How do I enable the digital filters for the NI 66xx or M-Series devices in NI-DAQmx?

Solution:
NI TIO devices have digital debounce filters that can be enabled on the Programmable Function Input (PFI) lines. You can find additional information about the filter settings for each device in the devices user manual in the Digital Filtering section. Information is also available in the NI-DAQmx Help file in the section "Digital Filtering Considerations for TIO-Based Devices" and "Digital Filtering Considerations for C Series and M Series Devices". In Windows, this help file installs with NI-DAQmx to Start » Programs » National Instruments » NI-DAQ.

When enabling the digital filter, you must choose a supported value for the filter. Supported values include 100 ns, 500 ns, 1 µs, 5 µs, and a programmable setting based on an external filter clock. Different counter inputs cannot have different custom filter values. If you are using the programmable setting, you must set the source and rate for the filter clock. M-Series devices support filter values of 125 ns, 6.425 us, and 2.55 ms. See the product manual linked below for more information.

Use the following methods to enable the digital filters:
  • Using LabVIEW:
    A DAQmx Channel Property Node must be used to enable the digital filter and set its value for the Counter Input task as shown below. If you are using the programmable setting, you must use the DAQmx Channel Property Node to set the source and rate for the filter clock. To get to this property select Counter Input » [Counter Input or Counter Ouput] » Digital Filter. In the example shown below the measurement type is frequency.


  • Using ANSI C:
    The NI-DAQmx C API has properties which can be set to enable the digital filters depending on the type of Counter Input task. For example, to enable the digital filter for a Counter Input Frequency task, you would use DAQmxSetCIFreqDigFltrEnable to enable the filter and DAQmxSetCIFreqDigFltrMinPulseWidth to set its minimum pulse width. To use a programmable filter setting with the same type of task, you must use DAQmxSetCIFreqDigFltrTimebaseSrc to set the source of the filter clock and DAQmxSetCIFreqDigFltrTimebaseRate to specify its rate. For more information on how to use these functions, see the NI-DAQmx C Reference Help at Start » Programs » National Instruments » NI-DAQ.


Related Links:
User Manual: NI 660x User Manual
User Manual: NI 6624 User Manual
User Manual: M Series User Manual
KnowledgeBase 30KHKH6I: How Do I Remove Glitches or Add a Debounce Filter to My Digital Signal?

Attachments:


enablefilter.jpg - enablefilter.jpg



Report Date: 03/14/2006
Last Updated: 11/05/2008
Document ID: 3VDG0388

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit