01-26-2006 04:29 AM
01-27-2006 12:00 PM
Robst - CLD |
Using LabVIEW since version 7.0 |
02-10-2006 07:14 AM
02-10-2006 07:41 AM
Robst might have a problem with the example, because LV 7.0 has a problem when allocating large arrays from constant values. It doesn't return an error.
LV's automatic memory management is something which is very good for most purposes, but will make life difficult when dealing with structures of this size. One thing to understand about LV's memory allocation is that it requires a contiguous area in memory for everything it allocates. That means it will have to find a vacant area of 250 MB which is hard since the memory gets defragmented.
I don't know why you see a 750 MB consumption on that example. I could understand 500 MB (250 for the wire and 250 for the indicator), but I don't know where the third one comes from.
02-13-2006 02:31 AM
03-02-2006 10:28 AM
03-02-2006 11:38 AM
The VI is called Request Deallocation and can be found in the Advanced>>Data Manipulation palette.
As far as I know, this VI only deallocates the memory allocated for the VI calling it, so it will only help you if you do this the right way.
Note - In general, doing most things "the right way" results in reuse of the buffer and therefore requires no need for deallocation. This should normally only be used in cases of really big data structures where this could be needed.
03-02-2006 12:30 PM
LabVIEW, C'est LabVIEW
03-20-2006 03:24 AM