Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Enable Digital Filtering on My PCI-6509?

Hardware: Digital I/O (DIO)>>Static>>PCI-6509

Problem: I have a PCI-6509, which has the ability to filter my input signals. How do I enable this feature and set the parameters in my program?

Solution: You can use the digital filter option available on the input lines to eliminate glitches on input data. To enable this option and to set its parameters you need to use a set of DAQmx channel properties.

To access these properties in LabVIEW (see attached VI):
  1. Place a DAQmx Channel Property Node on your block diagram, located at Functions » All Functions » NI Measurements » DAQmx - Data Acquisition.

  2. Expand the property node to contain 4 properties

  3. For the first property, select Digital Input » Digital Filter » Enable. Wire a false to this input, which will disable the filter on all of the lines by default (allowing you to enable the filter only on specific lines).

  4. For the second property, select Digital Input » Digital Filter » Minimum Pulse Width. This is where you set the filter pulse width.

  5. For the third property, select Active Channels This will allow you to select specific channels on which you would like to enable the filtering.

  6. Click on the 'Property' box and select the following path Digital Input » Digital Filter » Enable. This will enable the filter on the lines that are selected in 'Active Channels'


To access these properties in a text-based language, the functions you will use are the following:

DAQmxSetDIDigFltrEnable(TaskHandle taskHandle, const char channel[], bool32 *data);
This function sets the enabled state of the digital filter.

DAQmxSetDIDigFltrMinPulseWidth(TaskHandle taskHandle, const char channel[], float64 data);
This function sets the Minimum Pulse Width parameter for the filter.

Related Links: Product Manuals: NI-6509 Help (User Manual)

Attachments:


Filtered Digital Waveform.vi


Report Date: 03/31/2004
Last Updated: 10/07/2004
Document ID: 37UH2VI3

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