LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

memory allocation and deallaocation

how can i do allocation and deallocation of memory in labview. i would like to know both static and dynamic allocation/deallocation. for both cases some example would be nice.
thanks
0 Kudos
Message 1 of 5
(3,223 Views)
Hi fais,

you cannot allocate/deallocate memory in LabVIEW. You can allocate memory using system calls but that will be memory which LV cannot handle with. Another resource will be CIN tools which can allocate memory from the LV memory pool.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 5
(3,223 Views)
Waldemar is correct. You can not actually allocate and deallocate memory through LabVIEW. It is a high-level programming language and so it does this all for you. Is there a particular reason that you are wanting to do this?
J.R. Allen
0 Kudos
Message 3 of 5
(3,223 Views)
Hi Fais,

I agree with others replies to your post.

THere is another way of looking at memory in LV that can be helpful.

Under

Labview 6.1 >>> Examples >> Mememon.llb

there are some VI that may be intersting.

The undocumneted LV ini setting "ShowInPlaceSet" (or something like this) will let you see where your buffers are being re-used.

I also view shift-registers as buffers that I pre-allocate if I know I will be dealing with large blocks of data.

Does any of this help?

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 5
(3,223 Views)
The Show Buffer Allocations window, which allows you to see specific areas on the block diagram where LabVIEW allocates memory, is available in LabVIEW 7.1. Visit the KnowledgeBase for more information.

N. Kapoor
LabVIEW Documentation
0 Kudos
Message 5 of 5
(3,223 Views)