Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with USB-6525 Change Detection

Solved!
Go to solution

 

Hi,
    I wanted to make a program to read only when there is a rising edge on the USB-6525.
 
    Something like what an Event structure does, to execute only when there is a rising edge. I wanted to detect a "change event".
 
    But the code doesn't behave this way. it executes on every iteration of the loop.
I wanted to make a program to read only when there is a rising edge on the USB-6525.
Something like what an Event structure does, to execute only when there is a rising edge.
I wanted to detect a "change event".     But the code doesn't behave this way. it reads data on every iteration of the loop.

Can anyone advise how to code the program so that it will read the data only when there is a change event in the signal?
Thanks for any help.
Regards

 
 

 

 

0 Kudos
Message 1 of 5
(3,889 Views)

6525 doesn't support change detection as shown in https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PAqXSAW&l=en-US

You probably read boolean, and keep in shift register to detect the change between loop, and update to indicator, but the loop will execute independent of logic level.

0 Kudos
Message 2 of 5
(3,876 Views)

 

Hi,

 

Hardware capability is the first thing that I have checked. It is clearly stated in the product description that change detection is supported for USB-6525.

 

Can NI comment/advise? misrepresentation?

 

 

Regards

 

 

 

https://www.ni.com/en-us/shop/model/usb-6525.html

http://sine.ni.com/ds/app/doc/p/id/ds-137/lang/en 

 

Some highlights are listed for easy reference

 

Industrial feature set including change detection, power-up states, filters, and watchdog timers

 

Trigger Your Application with Change Detection
With change detection, you can automatically trigger your software application to perform a digital read operation upon a digital change of state.

 

Using NI-DAQmx software technology, the USB-6525 notifies the software application when it detects an event, causing the application to automatically perform a read operation.

 

0 Kudos
Message 3 of 5
(3,865 Views)
Solution
Accepted by topic author Limsg

6525 change detection support is added in DAQmx 8.9.

You can download latest DAQmx from https://www.ni.com/en/support/downloads/drivers/download.ni-daq-mx.html

0 Kudos
Message 4 of 5
(3,860 Views)

 

Thanks for the info.

 

Well.. another 1.1GB download......

 

Wouldn't it be more user-friendly to provide individual components for download.

 

Easier for deployment also..

0 Kudos
Message 5 of 5
(3,848 Views)