LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Acquistion Freezes second loop

I am trying to run two loops in parallel. One loop using a state machine for user interface and data acquistion and the second loop running a rs-485 update. The problem I am having is that I need to aquire data for ten seconds at a time and still read the serial port at least once every two seconds to prevent a watchdog from timing out. I am sure there is a better technique for doing this. The problem is that everytime I do a daq read the second loop freezes for ten seconds and times out the watchdog. Please Help!!!!
0 Kudos
Message 1 of 2
(2,639 Views)
My suggestion would be to use DAQ Occurrences. There is an example that comes with LabVIEW that shows how to do this. It can be found under Help >> Examples >> I/O Interfaces >> Data Acquisition >> Analog Input >> DAQ Occurrences. Using occurrences will temporarily put DAQ to 'sleep' until the DAQ buffer fills up. This will allow LabVIEW to continue processing the other Loop.

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

Message 2 of 2
(2,639 Views)