04-06-2006 03:57 PM
04-07-2006
04:54 PM
- last edited on
06-17-2025
08:28 AM
by
Content Cleaner
Hello J Bowen,
That error can sometimes be caused by not clearing your DAQmx tasks properly and freeing up the system resources reserved by these tasks. Make sure you are correctly clearing your DAQmx tasks at the end of your program using the DAQmx Clear VI. The DAQ Assistant Express VIs will take care of this automatically when the program stops. For the tasks you create manually, make sure to make a call to the DAQmx Clear function before ending your program. Follow the DAQmx shipping examples for an idea of how to do this properly Also, I would recommend upgrading to the latest version of the NI-DAQmx driver which can be downloaded here. Let us know if this solves the problem.
Regards,
Travis G.
Applications Engineering
04-07-2006 06:17 PM
04-07-2008 05:48 AM
Dear J Bowen,
Can you share out the solution I mean the block diagram. I have encountered the 50353 occurred at DAQmx Read (Analog DBL 1 Chan 1 Samp). Does anyone can help me? The attached is as below:
04-08-2008 11:53 AM
Hi *LJ,
I tried to take a look at your code, but I was unable to open all of the parts of your code because there were missing subVIs that you did not attach to the post. I took a look at the VIs that you did post and I noticed that except in the AnalogueInput1.vi you do not clear the DAQmx tasks in your program.
Tip: in the AnalogueInput1.vi you call both a DAQmx Control Task VI and a DAQmx Clear Task VI. The DAQmx Clear Task VI will release all reserved resources, so in this case you don’t need to release resources using the DAQmx Control Task VI.
In general, you should always clear each DAQmx task at the end of a program. Look through your code and make sure that for each task you create, you have a corresponding clear task. If desired, you can call the clear task as the last step in the subVIs that you have created to configure and read/write to your various inputs and outputs.
Tip: If you have multiple reads or writes taking place inside of a while loop you can improve the execution speed of your program if you configure the task outside the while loop, perform as many reads or writes inside the while loop, and then at your end of the program clear the task outside of the while loop.
04-08-2008 12:00 PM
03-10-2009 09:32 PM
I am getting the same error in my application during finite analog input. Were you able to resolve this issue?
Thanks.