LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

out of memory labview 8

I am pretty new for labview (vs. matlab.)
 
I am running Labview 8 and ran out of memory on a 30x2,000,000 objects. when I started up labview, it only allocates 32mb or so (help->about labview) I also perform memory checks and the program I am running consumes about 56mb or so of memory. It is causing labview program (as well as labview) to crash.  I have programs that will have even more objects (say 100 x 2,000,000) and desperately need to get around this issue. I didn't write the labview program.  So far, the questions in the forum either doesn't help or doesn't apply. 
 
my machine has 2 gb of physical memory and set up virtual memory from 2gb to 4gb.  windows chews up about 0.4gb. So I know windows memory is NOT an issue. I am running windows XP with Pentinum D
 
- How can I allocate more memory to labview 8 (say 1gb or more.)?
- I also heard of LVUTIL, but couldn't download the latest version. I wonder if that would help.
 
0 Kudos
Message 1 of 6
(4,357 Views)
Hello,

It would be most helpful to know how the code is actually structured, as LabVIEW deals with arrays in memory slightly differently than you might expect.  First of all, are these giant arrays that you are working with constant or are they built up as part of program execution?  Second, if there are any branches of the wires carrying the array data, this will make another copy of the array in memory, one for each branch.  This can very quickly cause LabVIEW to run out of memory if inefficient coding practices are used.  Third, what data type are you working with?  An array of 2 million U8 (8-bit integers) is very different than an array of 2 million complex cluster types.  Have you also checked the CPU and memory profile of the machine at the time of the crash?  What is the commit charge on your system when the crash occurs (visible in Task Manager)?
Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 2 of 6
(4,343 Views)
Hello Matt
I met this problem too. The memory configuration is the same with the original poster.  This LabVIEW program includes:
three 2176*3 arrays (wired into a Matlab script doing some calculation);
one 2176*256 array and one 2176*3 array(wired into another matlab script doing some Fourier transform or Hilbert transform).
When the LabVIEW program crashes, there is stll large available memory in the system.
Is there any restriction for the matlab in LabVIEW?
Thank you!

Yi
0 Kudos
Message 3 of 6
(4,226 Views)

Hi Yi,

There are a lot of things that you can do to optimize the memory use in the LabVIEW VI. Take a look at that knowledge-base article and also the LabVIEW help for VI Memory Usage to see where you can make improvements. It lists several factors that can affect VI performance and offers techniques to help you obtain the best performance possible. As far as any restrictions, the best place to check is the LabVIEW Interface Simulation Toolkit readme files. I have not noticed anything that could be the cause of the problem you are having. Also, it might help if you post a simplified version of your code or a screenshot of it so that we can see if there is anything obvious that could be the cause.

Carla

National Instruments
Applications Engineer
0 Kudos
Message 4 of 6
(4,196 Views)
Hi Carla,
I optimized some codes in LabVIEW and it did a little better. The main problem is that when it goes into the Matlab Script it costs about 1.3G memory (viewd from task manager). But it costs only about 70M memory viewd from "Profile Performance and Memory". How to explain this?
Thank you!

Yi
0 Kudos
Message 5 of 6
(4,172 Views)

Hi Yi,

Thanks for the information. I am not sure why you are seeing a different amount of memory usage in the task manager than in the profile performance and memory window. What version of LabVIEW are you using? There has been some noted trouble with memory leaks in LabVIEW 8.2 with mathscript. If you are using this version of LabVIEW, we could try using the trial evaluation version 8.5 with the code and see if that solves the problem. Could you possibly post a screenshot of the block diagram and of the profile performance and memory window and the task manager? It might help determine what is going on.

Carla

National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(4,151 Views)