07-05-2013 06:07 PM
I get this error at random time. Why does this occur and what does it mean by " Not enough memory for requested operation "
07-06-2013 07:13 AM - edited 07-06-2013 07:14 AM
When Vision creates an image, there needs to be enough free memory.
Please see this Page.
Also if it doesn't help please provide info with the code.
07-07-2013 12:41 PM
The problem may well be elsewhere in your code. When you create an image, an array of pixels needs to be allocated in memory to hold the image. There are ways of creating a few such image buffers, using them over and over as images are acquired, processed, and stored. Howvever, it is also possible to write code in such a way that you are continually creating new images, gradually using up all of the available memory on your PC. I'm not entirely sure what the IMAQ Set Image Size does internally, but it might well do such a re-allocation of an array to hold the "new" resized image, and when this happens, you would get the error you have encountered.
Note the fact that you see this a "random times" suggests that the error is "data-driven", i.e. depends on just what processing you are doing, how many images, how big they are, how memory is being allocated and reclaimed, etc.
BS