Ni 651X Features; Digital Filtering - National Instruments NI PCI-6510 User Manual

Daq devices
Hide thumbs Also See for NI PCI-6510:
Table of Contents

Advertisement

NI 651x Features

This chapter describes the National Instruments digital I/O features available for NI 651x
devices. For more information on the NI industrial DIO feature set, refer to the Complete
Industrial Digital I/O and Counter/Timer Tutorial. To access this tutorial, visit
and enter the code
rdcidi

Digital Filtering

Use the digital filter option available on the NI 651x input lines to eliminate glitches on input
data. When used with change detection, filtering can also reduce the number of changes to
examine and process.
You can configure the digital input channels to pass through a digital filter after the
photocouplers, and you can control the timing interval the filter uses. The filter blocks pulses
that are shorter than half of the specified timing interval and passes pulses that are longer than
the specified interval. Intermediate-length pulses—pulses longer than half of the interval but less
than the interval—may or may not pass the filter.
The filter operates on the inputs from the photocouplers. Photocouplers turn on faster than they
turn off and pass rising edges faster than falling edges.
Table 2-1 lists the pulse widths guaranteed to be passed and blocked.
Filter
Interval
t
t
interval
You can enable filtering on as many input lines as is necessary for your application. All filtered
lines share the same timing interval, which ranges from 200 s to 200 ms.
Internally, the filter uses two clocks: the sample clock and the filter clock. The sample clock has
a 100 ns period. The filter clock is generated by a counter and has a period equal to one half of
the specified timing interval. The input signal is sampled on each rising edge of the sample clock,
which is every 100 ns. However, a change in the input signal is recognized only if it maintains
its new state for at least two consecutive rising edges of the filter clock.
.
Table 2-1. NI 651x Digital Filter Timing Intervals
Pulse Width Passed
Low Pulse
+ 200 s
interval
High Pulse
t
interval
Pulse Width Blocked
Low Pulse
t
/2
(t
interval
© National Instruments | 2-1
2
ni.com/info
High Pulse
/2) – 200
interval
s

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents