05-14-2021 08:13 AM
I can't figure out the issue I've got : Memory is full
When I click on OK, the following table is blinking :
Anyone knows how to solve this issue?
Thanks
05-14-2021 08:21 AM
You are taking some integer and dividing it by a double. What is the result of that division? You are feeding that into Initialize Array.
I think it is pretty likely that math is creating a large enough number that you don't have the memory to create an array of that size.
05-14-2021 08:38 AM
@RavensFan wrote:
You are taking some integer and dividing it by a double. What is the result of that division? You are feeding that into Initialize Array.
I think it is pretty likely that math is creating a large enough number that you don't have the memory to create an array of that size.
To add insult to injury, that Initialize Array is not actually needed. Since you are initializing it to all 0, and then adding the 0, you can eliminate that Addition inside of the loop as well. So the loop should just reduce down to the multiplication result autoindexing an array. I will also do so far as to say that the loop could be replaced with Ramp Pattern.vi (Signal Processing->Signal Generation).
05-14-2021 08:48 AM - edited 05-14-2021 08:50 AM
We typically cannot debug truncated code pictures, but this case is more glaring and I agree with Ravens. Most likely your are dividing by zero, giving you ~2^31 iterations.
You really should go back to the LabVIEW tutorials (an even maybe math class!), because most of your code makes no sense.
(It is not necessary to wired N when autoindexing. Adding zero to a scalar over and over seems useless. You just get the scalar back. You can avoid the addition if you would initialize the array with your scalar instead of zero. It seems you want to create simple ramps. there are tools for that! Typical ramps have a multiplier and offset but then the addition should be after the multiply. Please check the math. Shouldn't the two FOR loops be more similar?)
Please attach your entire VI and make sure that all controls have typical default values so we can run it without having to guess (do you know how to do that?). We can point you to significantly better solution quickly!