LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array size in memory

Hi,

I notice that the array size in memory in labview for an array of 1d array of size 16777040 of u16 integers is about 64 mbytes. I thought it was about 32 mbytes because it would be 2 bytes for each array element multipled by 16777040 which is about 32 mbytes. Does anyone know what I am missing or what the extra memory is due to.

Thank you,

-Tim
0 Kudos
Message 1 of 3
(5,063 Views)
There could be many reasons, for example front panel controls and indicators contain their own data copies.
 
(If I create a VI containing only a diagram constant of a size 16777040 U32 array, the data size of the VI is 32MB as expected)
 
Can you attach your code so we can have a look? What is your LabVIEW version?
Message 2 of 3
(5,053 Views)
Hi,

As a diagram only constant the array of size 16777040 of U16 integers comes out correctly to 32MB as expected and you have noted. I have labview 7.1. I am taking data from a pxi 6561. It will be processed later. I just wanted a rough estimate of what the memory size would be. I believe this will depend on the processing and how many copies of the array are created during the processing phase.

Thank you,

-Tim
0 Kudos
Message 3 of 3
(5,033 Views)