Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I jump out DAQmx Read which waits indefinitely and continue next code?

Hi,
I have NI-6515 card and I need wait for data using change detection, once a time state quickly change. But for program executing I sometimes need also stop waiting and continue next steps. Is there any other way next to using DAQmx Control Task - abort? I'm using LV 7.0 and DAQmx 7.1.
Thanks.
0 Kudos
Message 1 of 2
(3,315 Views)
Hi Pavel,
with change detection, you can automatically trigger your software application to perform a digital read operation upon a digital change of state. The digital I/O module notifies the software application when this event occurs, so no polling is necessary. Using change detection, you can monitor for digital events with minimal processor usage. No polling is necessary, because the digital I/O module generates an interrupt to automatically "wake up" your application.
You can configure change detection in DAQ Assistant or directly in LabVIEW. Specify short Time-out if you want to stop waiting and go further in program execution.
Pavel
0 Kudos
Message 2 of 2
(3,315 Views)