Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

thread safe for DIG_In_Line function

if 2 threads call DIG_In_Line function at the same time, to read same port but different lines on the digital board, will there be any problem?

Thanks.
0 Kudos
Message 1 of 2
(2,785 Views)
That should not be a problem. I wrote a quick LabWindows/CVI program that created multiple threads, each of them calling the DIG_In_Line function. I recieved no errors. However DIG_In_Line is a Traditional DAQ function call. Traditional DAQ is not multi-threaded, so if one thread is currently in the function call, then the subsequent threads will simply wait until the first thread has completed its function call.

-Alan
Message 2 of 2
(2,785 Views)