LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Full : stopped at Initialize array

I am getting an error .. see attchemnet. The output from the initialize array is wired to a for loop. (via shift registar). I have read many post related to this but could not understand anything. any solution?

 

thanks

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 27
(3,995 Views)
What is the size of the array you are initializing?
Message 2 of 27
(3,987 Views)
I gave the dimension size as 270. Should i make it as zero?
Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 27
(3,977 Views)

Nghtcrwlr wrote:
I gave the dimension size as 270. Should i make it as zero?

Yes but it is a 2D array, and the other dimension is that dbl wire coming down from above.  How large a number do you expect this dimension to be?

0 Kudos
Message 4 of 27
(3,973 Views)
That is the square root of sum of sqaure of X & Y resolutions.
Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 27
(3,965 Views)

Nghtcrwlr wrote:
That is the square root of sum of sqaure of X & Y resolutions.

That's nice. What's the value?

0 Kudos
Message 6 of 27
(3,959 Views)
it depends up on the binary image i choose.256X256
Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 7 of 27
(3,956 Views)

Are you using a U16 data type in your cluster?  You might find this link worth looking over, it tells you how different data types are stored in memory.

Message Edited by jmcbee on 03-18-2009 04:20 PM
0 Kudos
Message 8 of 27
(3,952 Views)
No. Iam using  I 32. Actually i cant set the dimension to 0.The final result is empty alwayz.
Message Edited by Nghtcrwlr on 03-18-2009 05:26 PM
Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 9 of 27
(3,937 Views)
A Long Integer uses 4 bytes, you have two long integers per cluster and you have about 270x255 clusters, which means that you are looking at 17556750 bytes of continuous memory.  I don't see why you would have trouble storing 17.5MB of data.  Smercurio, did I do this calculation correctly?
0 Kudos
Message 10 of 27
(3,930 Views)