06-21-2011 12:41 AM
Hi
I'm using PCI-6115 and Matlab Data Acquisition toolbox.
Sometimes I get error -50352 "The requested memory could not be
allocated" immediately after starting an analog input acquisition, but usually the program works fine.
After the error, sometimes I have to restart the computer before my program will run properly.
The memory I use is about 0.5Msamples for an analog output channel, and at most 1Msamples for analog input channels, well below the board memory (16Msamples).
My system also includes USB-6221, which doesn't generate the error.
I also enabled the 3GB switch of Windows operating system (maybe its relevant)
I'm not attaching the code since the program is quite long and complex
Thanks
Yonathan
06-21-2011 05:04 PM
Hi Yonathan,
This error code can relate to a couple of issues, I have linked a Knowledge Base article below that focuses on a couple and how you can go about troubleshooting. Since you say you only receive the error sometimes makes me think you are not stopping and clearing your task before beginning another. This can definitely cause a conflict with allocating memory. Have a look at the article below and see if it provides any help.
Resolving DAQmx Error -50352 "Memory Cannot be Allocated"
http://digital.ni.com/public.nsf/allkb/00A43B6D38EB768E86257537000120BB?OpenDocument
Regards,
Kyle S