04-26-2021 10:12 AM
Dear all,
I have the following problem. Within an Main Labview VI, I want to call an SubVI (see attachment) including showing the front panel.
Yet when I call the SubVI I get the following error message:
LabVIEW: (Hex 0x2) Memory is full.
The top-level VI "foo.vi" was stopped at Initialize Array on the block diagram of "NIMS_V=zeros(I32,I32).vi:2980004".
Refer to the VI Memory Usage topic...
And then a copy of the mentioned vi pops up (see images).
Now, I do understand, that there seems to be a problem, that somewhat my memory gets full and I tried the techniques given in the LabView Help. Yet I quite don't understand the error and how to overcome it.
04-26-2021 01:16 PM
04-26-2021 01:42 PM
Hey Gerd,
if you mean in my SubVI it should become a 2D array, which I transform then into an 1D Array.
For the x and y in the VI that is shown in the images, actually nothing really happens when I try to plug in numbers, it just stays zero.
Best regards,
kilroywh
04-26-2021 01:48 PM
Hi kilroy,
@kilroywh wrote:
if you mean in my SubVI it should become a 2D array, which I transform then into an 1D Array.
No, I don't mean to work with a 2D array in the subVI…
@kilroywh wrote:
For the x and y in the VI that is shown in the images, actually nothing really happens when I try to plug in numbers, it just stays zero.
I was asking: which "X" and "Y" value did you supply to your subVI when you got that "memory full" error?
Most probably you supplied too big values, resulting in a huge memory request at InitArray - hence the "memory full" message!
04-28-2021 01:01 AM
Hey Gerd,
The number I provided weren't big, since the buffer went full before I could do anything.
Anyhow the number which I then plugged in where in the range between 0 and 512.
Nevertheless, I solved it!
The problem was the following: Within the SubVi I provided one of the inputs into the MathScript Node was a 2D-Array (X,Y,R as columns).
Now it should calculate then X and Y postions based on the radius. Therefore I created in the script an 1D-array of zeros beforehand (e.g., X = zeros(N,1) ).
In the end it just had to be an 2D-Array (e.g., X = zeros(s,L)).
Best regards,
kilroywh
04-28-2021 01:34 AM
Hi kilroy,
@kilroywh wrote:
Nevertheless, I solved it!
The problem was the following: Within the SubVi I provided one of the inputs into the MathScript Node was a 2D-Array (X,Y,R as columns).
Lesson learned: provide as much information as possible when you want our help on your problems!
How should we have known about that MathScript nodes before?
On your images (still no code from you):
@kilroywh wrote:
Do you think it's a good idea to have a "N" integer input and a "N" DBL output?
04-28-2021 03:21 AM
Hey Gerd,
yeah I looked at my original post and was really suprised, that the original VI I was talking about was not there, since I actually dropped it in.
But I'll do it now!
However, thanks for the Input about the variable "N". I oversaw it (and am not too sure how to change it).
Best regards,
kilroywh