01-29-2009 07:35 PM - edited 01-29-2009 07:37 PM
When using a DAQ task inside an Aysnchronous timer and then trying to discard the timer Windows XP crashes with the blue screen of DEATH with an error saying "BUGCODE_USB_DRIVER".
Here is the sequence of events inside my code in psuedo code. It is very close how to various NI example codes work
in main:
DAQmxCreateTask("",&analog_input_task);
DAQmxCreateAIVoltageChan();
DAQmxStartTask(analog_input_task);
NewAsyncTimer();
in timer:
DAQmxReadAnalogF64
then in the quit function:
Discard Timer();
StopTask();
ClearTask
QuitUserInterface();
The system crashes when it gets to Discard timer. If I comment out all the DAQ stuff it wont crash. If i dont call out the timer it wont crash but the task will not be able to be stopped or cleared. I am using a NI USB-6009 device.
01-30-2009 11:42 AM
eward,
Why are you using an asynchronus timer for your acquisition? Could you point me to the example that uses this timer?
Also, judging from the fact that you are receiving a BSOD on this, it's possible that your driver installation may be corrupt. Please try downloading DAQmx 8.9 and be sure to install support for LabWindows/CVI.
01-30-2009 11:52 AM
02-02-2009 08:54 AM
eward,
Could you attach a copy of your code? I'd like to see if I can reproduce the BSOD on my end and see if I can find you a workaround or fix for this. Thanks.