Change Detection; Change Detection Example - National Instruments NI 6520 User Manual

Contains five form a single-pole single-throw (spst) non-latching relay outputs, three form c single-pole double-throw (spdt) non-latching relay outputs, and eight channel-to-channel isolated industrial inputs
Hide thumbs Also See for NI 6520:
Table of Contents

Advertisement

Change Detection

Excessive change detections can affect system performance. Use digital filtering to
Note
minimize the effects of noisy input lines.
Changes to detect
Enable rising-edge detection
Enable falling-edge detection
© National Instruments Corporation
You can program the NI 6520/6521 device to send an interrupt when a
change occurs on any input line.
The DIO device can monitor changes on selected input lines or on all input
lines. It can monitor for rising edges (0 to 1), falling edges (1 to 0), or both.
When an input change occurs, the DIO device generates an interrupt, and
the NI-DAQ driver then notifies the software.
The DIO device sends a change detection when any one of the changes
occurs, but it does not report which line changed or if the line was rising or
falling. After a change, you can read the input lines to determine the current
line states. The maximum rate of change detection is determined by the
software response time, which varies from system to system.
An overflow bit indicates that an additional rising or falling edge has been
detected before the software could process the previous change.
Refer to the software documentation for information about how to set up
and implement the change detection.

Change Detection Example

Table 2 shows a change detection example for six bits of one port.
Table 2. Change Detection Example
7
yes
yes
This example assumes the following line connections:
Bits 7, 6, 5, and 4 are connected to data lines from a four-bit TTL
output device. The DIO device detects any change in the input data
so you can read the new data value.
Bit 1 is connected to a limit sensor. The DIO device detects rising
edges on the sensor, which correspond to over-limit conditions.
Bit
6
5
4
yes
yes
yes
yes
yes
yes
9
3
2
1
no
no
yes
no
no
no
NI 6520/6521 User Guide
0
no
yes

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ni 6521

Table of Contents