From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extending Virtual Memory more than 4GB for LV2012 ?

Hi All,

 

I have a big project need to build excutable but "Not enough memory for this operation" during the build.

 

Last time when I build it in LV2009 in windowsXP(32 bits), I have this problem too. I did "Enabling LabVIEW to Use up to 3 GB of Virtual Memory on Windows XP" as this help and build successfully.

http://zone.ni.com/reference/en-XX/help/371361J-01/lvhowto/enable_lrg_ad_aware/

 

Now my project growed (more classes,etc.) and it is LV2012 in Windows7(64 bits). According to the note in above link, "On 64-bit Windows, LabVIEW can access up to 4 GB of virtual memory by default. You do not have to take any action to enable LabVIEW to access up to 4 GB of virtual memory on 64-bit Windows." But when I build, I noticed the memory used by LabView is keep increasing, when it above 3 GB, "Not enough memory" error pop up. I follow "Enabling LabVIEW to Use up to 3 GB of Virtual Memory on Windows 7" in above help but set 6GB or 8GB (computer have 12GB memory total) instead of 3GB, but same issue, when above 3GB, not enough memory.

 

Is there a limit of 3GB in LV2012 ? How can I increase it so I can build ?

0 Kudos
Message 1 of 7
(3,318 Views)

A 32bit application cannot address more than 4GB, period. You could switch to 64bit LabVIEW.

 

Maybe your code is very bloated for what it actually does. Try to streamline it.

 

Setting randomly high amounts in the configuration is completely misguided.

0 Kudos
Message 2 of 7
(3,301 Views)

I found this page so I guess I cannot do it in 64 bit since the table stated “Not supported” for the 3 items I needed: NI-DNET, NI LabVIEW Real-Time Module and NI LabVIEW FPGA Module

http://www.ni.com/white-paper/10383/en/

 

I tried following but still "Not enough memory for this operation".

http://zone.ni.com/reference/en-XX/help/371361J-01/lvhowto/enable_lrg_ad_aware/

http://digital.ni.com/public.nsf/allkb/CBEBDC184655FC8C8625724A00050854

 

Sure I can streamline the code. It will take some time so I want to see if there is a way can build for current code.

0 Kudos
Message 3 of 7
(3,208 Views)

@VCXO wrote:

I tried following but still "Not enough memory for this operation".

http://zone.ni.com/reference/en-XX/help/371361J-01/lvhowto/enable_lrg_ad_aware/


You psted the same link two weeks ago. Since you are apparently using Windows 64 bit, there is nothing to do. These instructions do not apply to you.

 

It is hard to believe that reasonable code can use so much memory, so you are probably doing something wrong. Typically most of the memory use is from large data structures, not code. What does the program do? Can you show us some code examples?

0 Kudos
Message 4 of 7
(3,197 Views)

The project having some complex customer controls. Each control had dozens of clusters. Each cluster had enum, boolean, integer, etc. 

 

I will try to remove them from project then build.

0 Kudos
Message 5 of 7
(3,187 Views)

Do they contain default data?

0 Kudos
Message 6 of 7
(3,182 Views)

yes

0 Kudos
Message 7 of 7
(3,170 Views)