From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
To download NI software, including the products shown below, visit ni.com/downloads.
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
Hardware
Steps to Implement or Execute Code
1. Select the physical lines and connect signal.
2. Run the program.
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
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.
-- Author has updated example adding Unregister--
Thanks.
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
Hardware Compatibility Note:
Not all DAQ hardware supports Change Detection. Please view the following KB to see if your device is compatible.
That was mostly what I wanted to do, thank you!
Is it possible to monitor events coming form multiple digital lines and then know which line creates the event in order to respond with something specific and different for ecah line?
I'm not able to know in this example which line produced the event.
Best regards.