Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the maximum size of an IMAQ image?

I have an application that processes very large images. I frequently encounter "not enough memory for operation" with the IMAQ ReadFile function. I've followed every instruction I can find on the NI website (and discussion boards) to maximize the available memory. I have Windows XP, 4 gb of RAM, Labview 8.5, /3GB option in the boot.ini, a third party memory defragmenter, etc.
 
Even with more that 2GB of memory available, after Labview has loaded, I can't load images greater than 1GB. Does anybody know if there is a limit check in the code? I've been told that there is not, as long as a contiguous chunk of memory of sufficient size is available. This does not appear to be true.
 
Thanks,
Ron

Message Edited by sammamishmac on 09-27-2007 09:04 AM

0 Kudos
Message 1 of 4
(4,093 Views)
Hello Ron,

I suggest you remove as many startup applications as possible and then reboot your machine.  For more information, please review the following two KnowledgeBase documents. 

IMAQ Vision Not Enough Memory Error -1074396159
http://digital.ni.com/public.nsf/allkb/1922FCDCE6623ABC8625735300592793

What is the Maximum Image Size I can Acquire with my Digital Camera?
http://digital.ni.com/public.nsf/allkb/A1F031E6269D9E3B86256EFB0068807D

If you still encounter the problem after working through the information in these resources, please let me know.

Best Regards,
Travis M.

0 Kudos
Message 2 of 4
(4,066 Views)

Hello Travis,

Thanks for the reply. The problem I am encountering is precisely what is described in the first link you provided. I've done all of the things described there previously, but I decided to try one more time. I closed every application except Labview and terminated every process I could, including all NI processes (there are a bunch). I loaded my application and then ran a memory defragmentation program. It said that I had a full 2GB of contiguous memory. I had a total of 20 processes running with a very small memory footprint.

Now, I called IMAQ SetImageSize with X resolution and Y resolution set to 32539. The error "IMAQ Set Image Size Not enough memory for requested operation" error is displayed. If I decrease the values to 32538, no problem. I've tried this on 2 different computers running XP pro, both with 4GB ram installed. Same result.

Best Regards,

Ron

0 Kudos
Message 3 of 4
(4,062 Views)

Hello Ron,

I have spoken with the Vision Product Support Engineer about this issue in hopes of finding any other suggestion to offer you, but the KnowledgeBase document linked in my earlier post truly is our only resource on this particular error.  The Vision Product Support Engineer explained that the problem is not with LabVIEW or NI-Vision; the operating system is simply not allocating a large enough piece of contiguous memory. 

Best Regards,
T. McCarty

0 Kudos
Message 4 of 4
(3,999 Views)