07-02-2008 09:52 AM
07-02-2008
10:29 AM
- last edited on
04-02-2025
04:50 PM
by
Content Cleaner
A quick search on www.NI.com for Memory Management will yield some good results, including this one. You should probably also check out this page, which tells you how to show buffer allocations on your block diagram. A buffer allocation will signal where a copy of the data on the wire is being made, copies of arrays (in a for or wile loop for instance) can add up pretty quickly. You should also check and make sure that you are closing all references that you open, as well as closing any write to file instances that you use.
07-02-2008 11:19 AM
07-02-2008
11:27 AM
- last edited on
04-02-2025
04:53 PM
by
Content Cleaner
Sure thing. If you open a reference to another VI within your VI (for instance, to call the VI without having the main VI hang until the VI completes) you need to be sure to close the reference. The reason for this is that if you are opening a reference in a loop without closing it, it will keep loading the VI into memory over and over again. This is a common way to build a memory leak. I am not sure if make use of references in your program or not, so this may not apply to you.
07-03-2008
03:09 AM
- last edited on
04-02-2025
04:54 PM
by
Content Cleaner
Hi Silvia,
you could have a look at this link to understand how LabVIEW manages memory resources and how you can reduce memory usage.
Regards,
Serena Monti
Applications Engineering
National Instruments
07-07-2008 09:05 AM
Hi,
I want to improve the memory management in my own labview program.
How does the structure "In Place Element Structure " work? I'd like to use it when I build arrays...
thanks
Silvia
07-07-2008 09:17 AM
Also writing any Measurement data to File / Disk more frequently rather that moving Data around in LabVIEW could also help.
Craig
07-07-2008 09:25 AM
07-07-2008 09:28 AM
LOL. A question about "in place" that is "all over the place". 😄