ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Allocating Memory

Hi there,
I am trying to allocate a block of heap memory in LV5.0. Is there a good VI
as standard? Or need to call Win32 API for memory allocation? Any help will
be welcome.

Miku
0 Kudos
Message 1 of 2
(5,576 Views)
> I am trying to allocate a block of heap memory in LV5.0. Is there a good VI
> as standard? Or need to call Win32 API for memory allocation? Any help will
> be welcome.
>

It depends on what you are going to do with it. LV arrays and
other data types allocate memory. When passed to a CIN or DLL,
that memory can be written to or even resized. If you are
within a DLL or CIN and wish to allocate a new block of
memory, then you can either use the LV functions like DSNewHandle,
or you can use system calls like new, malloc, or VirtualAlloc.

I can't tell enough in this email to be able to give a better
answer.

Greg McKaskle
0 Kudos
Message 2 of 2
(5,576 Views)