01-18-2008 04:51 AM
01-18-2008 03:21 PM
Hi,
I have not found many issues with the 50004 error, and with the couple cases I did come across it was the result of using a lot of tasks and creating/destroying them continuously. Would you be willing to post your code so we can take a look? It might be something we can repeat here and/or offer some suggestions. You shouldn't be able to get into a state where that error occurs but obviously something is off.
You can look into your code yourself, if you are continually creating and clearing tasks, look for opportunities to just stop and start them. Also, just for our info - what version of DAQmx and LabVIEW are you using?
Cheers,
Andrew S
MIO Product Support Engineer
National Instruments
01-22-2008 09:22 AM
Hello!
Thank you for the answer!
I have now removed the creating and destroing of tasks. I do a DAQmx Reset Device after an error has (-50405 or -200324) occured in order to continue communicating with the device after the error. When I try to stop and start the task before and after the reset I got an error -200324 (after the DAQmx Start Task). I have tried to wait for 5 sec for the device to complete the reset function. It was this error that forced my to remove and create tasks (my first mail) after resetting the device in the first place.
I do not know what cases the first error, but this error occures randomly after some ours. I try to simulate a communication error by removing the USB cable from the PC for some seconds, but get this -200324 error after resetting the device (I first verify that the device is present by reading the DevNames, and counting modules).
Best Regards;
Morten Christian