07-28-2010 09:33 AM
Hi,
The attached code is based off of the ContAcq-IntClk.c code example from NI.
The code works correctly with actual hardware but blue screen crashes when run with simulated devices.
I did some investigation and it seems that the crash happens only with simulated devices and only if I explicitly commit the task using DAQmxTaskControl
The crash always happens when acquiring a 2nd set of data with a larger number of scans than the 1st set of data acquired.
cDAQ1Mod1 is a simulated device
Running on Windows 7 (32 bit)
NIDAQmx Driver: 9.1.0f0
Please find the code to reproduce this problem attached.
Thanks,
whemdan, The MathWorks
07-28-2010 09:34 AM
Here's the code to reproduce this issue.
Thanks,
whemdan, The MathWorks
07-28-2010 01:11 PM
I was able to reproduce this and I've filed Corrective Action Request #242484 with R&D to investigate and correct this issue.
May I ask why you chose to explicitly commit the task? DAQmxCfgSampClkTiming will move the task back into the verification state, which means that your task will be implicitly re-committed at DAQmxStartTask. In your example, you gain nothing by having done the explicit commit, thus the workaround that you noted of not doing DAQmxTaskControl(Commit) will give you identical results as it would if it had not bluescreened.
Thank you for bringing this to our attention-- we're not fond of bluescreen bugs. If you'd like to check on the status of this Corrective Action Request in the future, post to the forums requesting an update on CAR#242484 and we'll let you know the status.
07-28-2010 02:24 PM
Hi,
Thank you for your quick response.
I am running code where I am reusing tasks for multiple acquisitions and I was committing the task explicitly to reduce the latency of future calls to DAQmxStartTask.
Thanks,
whemdan, The MathWorks