I have this exact same issue with a similar application, but I get a "response error -3" from the mcc118 daq hat every few scans. When I call the a_in_scan_start() function, the description says the data collection and buffer operation happens in the background, I am assuming this is a new thread? If so, my problem is I can't figure out how to access this thread, such that I can do a thread.join() which would prevent the scan from getting interrupted by my other threads. Am I understanding this function of the _scan_in_start() correctly, and is there a way to do this?
Thanks,
Joe