Multithreaded DAQmx Base Code is Freezing

Updated Jun 19, 2018

Reported In

Driver

  • NI-DAQmx Base 15.0
  • NI-DAQmx Base

Issue Details

  • I am running C code on my Linux machine, that uses the DAQmx Base driver.  I am running multiple threads in my code.  A while into my code, the system freezes, and requires a system restart to fix it.  Why is this happening, and how do I prevent it?
  • Can I multithread my DAQmx Base application?

Solution

DAQmx Base is not thread safe.  This can be found in the readme.  You should not multi-thread code using DAQmx Base.  You may also be able to work around the issue by taking precautions using mutex locks.

WAS THIS ARTICLE HELPFUL?

Not Helpful