Example Programs

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Change Detection Event Registration

Overview

This code demonstrates how to capture both the rising and falling events associated with change detection.

 

Description

This code demonstrates how to capture both the rising and falling events associated with change detection.  By adding the boolean logic, you can now have seperate actions based upon the rising or falling edge of a signal.

 

Requirements

Software

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

 

Steps to Implement or Execute Code

1. Select the physical lines and connect signal.
2. Run the program.

 

Additional Information or References

 搜狗截图17年01月07日2036_15.png

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

 

 

A_Ryan
AES
National Instruments
Comments
Member Jeff_Long
Member

Very nice example of using change detection with events!  I used this today with a USB-6525 to detect a 10ms pulse from a host machine as a start signal for my software application.

Regards,

Jeff Long, President
AutomationWorks, Inc.
http://www.automationworks.com
Member Gardo
Member

-- Author has updated example adding Unregister--

Thanks.

Member Åland
Member

 Is it by any chance possible to get this example to work with USB-6003? 

I want to fire an event when a digital in pin go HI. 

 

I tried this example but get an error message saying

 

Requested value is not a supported value for this property.

The property value may be invalid because it conflicts with another property.

 

Property: SampTimingType
Requested Value: Change Detection
Possible Values: On Demand

Member Titen
Member

Hardware Compatibility Note:

 

Not all DAQ hardware supports Change Detection. Please view the following KB to see if your device is compatible