03-19-2009 12:50 AM
I'm working on a PCI-6229 project where I have one thread that handles analog-in and out while the main program thread does some digital I/O but the program is crashing, access-violation errors, on a DAQmxCloseTask command. I'm pretty sure it is because both threads try to talk to the 6229 board at the same time, mostly because this seems to occurr at random times, I'm doing analog-in frequently and digital out infrequently, and the crash always occurs in the digital-out routine.
I've read here that you can't use multiple threads to do analog I/O on the same board. Is this also the case when one thread does analog and the other digital?
03-19-2009 02:05 AM
03-23-2009 11:00 PM
Thanks.
I was having trouble tracking down a codeing error and wasn't sure if this was the problem. Turned out my program would occasioanlly start a second thread that did digital I/O before the previous one was finished.