Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NIDAQMX hogs resources

Using:

Python3.8

nidaqmx_0.6.3

CPU: i5-1135G7

 

I have a pc reading/writing/logging to a USB controlled DAQ. In my program, I use the subprocess lib once to obtain a git hash of my program, I have two threads spawned to communicate via USB to two other devices. The tipping point of crashing my program is when I add the subprocess lib call. By process of elimination, it seems that the nidaqmx input and output tasks are the culprit.

 

I know the nidaqmx lib invokes C++ code. I'm guessing this is where the hogging comes from, due to python being interpretive and how nidaqmx is implemented. Any recommendations on options to fix this? I currently have a separate task for input and output. Does nidaqmx support combining the two?

0 Kudos
Message 1 of 2
(440 Views)

This seems to be related to this git issue. Does anyone have a solution?

0 Kudos
Message 2 of 2
(375 Views)