LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simultaneous Calls to DAQmx Read on same digital line

Solved!
Go to solution

Hi all,

 

I am using LV v10.0 32 bit on Windows 7.

 

I use DAQmx Read (within a task) to check the value of a digital line. Is it ok to do this from two different places in a program simultaneously for the same digital line? Or do I need to put a wrapper around the read to force the operations to be sequential?

 

Thanks,
Zola 

0 Kudos
Message 1 of 3
(2,253 Views)
Solution
Accepted by zola_the_gorgon

When you need to expose resource capabilities to multiple areas within a project (expand the scope of a resource)  It is common to wrap the resource in a Action Engine to encapsulate the functions of the resource.  See Here for an example of a hardware "Resource Module" and a lively discussion on how this code construct can aid development and avoid resource conflicts.  If you haven't read Ben's famous nugget yet- there is a link in my tag "Required_Reading"

 

Or more directly.  Yes, you should wrap those DAQ reads to avoid confilcts


"Should be" isn't "Is" -Jay
Message 2 of 3
(2,245 Views)

Thank you. Interesting reading. 

0 Kudos
Message 3 of 3
(2,232 Views)