09-12-2007 02:42 AM
My application uses a lot of memory. I break the memory allocation to small arrays of 100M each.
I have Windows XP 32bit and I set the /3GB flag in the boot.ini file, the computer has 4G byte of ram memory. Never the less, Labview (ver 8.2) can't allocate more then 1G byte memory.
Why?
Attached small vi that represents the problem.
Regards
Gabi
09-12-2007 04:08 AM
09-12-2007 04:21 AM
hi there
according to http://digital.ni.com/public.nsf/allkb/AC9AD7E5FD3769C086256B41007685FA the maximum amount of memory for LV 8.2.1 is 2GB. check if there are some extra copies of your arrays. and be aware that LH has to share the memory with all the other applications and services runnnig on yout plattform.
what kind of data are you dealing with? if it's digital data then take a look at the "Digital compress" and "Digital uncompress" VIs from the Digital Waveform palette.
09-12-2007 04:46 AM
Hi
Thanks for your prompt replay.
Now I am limited to 1.5 GByte (I increased the number of the shift Register).
Do you have an idea why?
Regards
Gabi
09-12-2007 05:11 AM
09-12-2007 05:15 AM
09-12-2007 07:57 AM
Hi
In case there is no way to allocate more then
Regards
09-12-2007 08:10 AM
Well if you managed to get 1.5 Gig then you beat my best which was 1.2 G.
The issue is the hardware of the pentium chip and the OS.
The MSB of the address distinguishes between OS memory space and program space which limits you to 2G max.
64 bit machine may let you go farther but I have not tested this myself.
The other factor that has to be taken into concideration is that LV insists all of its buffer be contiguous so if the OS can not find a contiguous block, the allocation fails.
Quoting from JPD signature;
"All of the above may be wrong!"
If you know better, then by all means straighten me out.
Ben
09-12-2007 09:18 AM
(Windows) LabVIEW 8.5 is large address aware. On a 64-bit operating system, LabVIEW can access up to 4 GB of virtual memory by default. On a 32-bit OS, LabVIEW can access up to 2 GB of virtual memory by default. You can enable LabVIEW to access up to 4 GB of virtual memory on a 32-bit OS by modifying the Windows boot configuration settings. Enabling LabVIEW to access more virtual memory decreases the likelihood of experiencing general LabVIEW errors related to memory allocation when you work with large sets of data.
09-12-2007 09:25 AM - edited 09-12-2007 09:25 AM
Message Edited by GerdW on 09-12-2007 04:25 PM