LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help: memory is full!

Hi,

 

I am trying to write my own Model predictive controller in labview for my thesis. It works for a SISO-system, but when I give in a 2x2-MIMO system, it gives memory is full on a block initialize array (and the size of that array is 0 or 1 here). I don't know anything about memory usage in  labview, only that you can't store big arrays, but I don't have big arrays I think. The code looks like a big mess, but maybe there is a simple reason for the error. The main VI is testMPCLS, all the settings are ok to test, you only need to press MPC? button to true to let the MPC start. There is one button you have to adjust to see the error; # Rijen matrix transferfunctie x  # Kolommen matrix transferfunctie, if you set this to 1 x 1, it works (SISO), but if you change it to 2 x 2, you get the error, 2 x 1 doesn't give an error though. It's labview 2009.

 

Regards,

 

KF_

Message Edited by KF_ on 04-11-2010 07:26 AM
Download All
0 Kudos
Message 1 of 6
(2,649 Views)
Here are some more files, Could only add 3 VI's
Download All
0 Kudos
Message 2 of 6
(2,647 Views)
I can't open these files because I'm still on version 8.6.  A very common scenario people will encounter when running into memory problem is when they queue improperly.  As a rule of thumb, no matter what you put into the queue, make sure your deQueue runs faster than your enquque or you'll run into trouble.  It's either that or just use a lossy enqueue.
0 Kudos
Message 3 of 6
(2,633 Views)

Thanks for your reply,

 

 

I was just checking some more and it turns out i was feeding NaN to some parts because  the order of clusters which connect some subvi's didn't match and that caused the error. I converted to labview 8.6, I hope it works, I'll probably will encounter some more problems along the way 🙂 . You also need control design and simulation toolkit btw.

Message Edited by KF_ on 04-11-2010 09:05 AM
Download All
0 Kudos
Message 4 of 6
(2,624 Views)
and the rest
Download All
0 Kudos
Message 5 of 6
(2,623 Views)

I dont have control toolkit installed.  Maybe another control gurus or application engineers can help you out.  This looks like a monster program. 

 

Have you tried on a faster machine?

0 Kudos
Message 6 of 6
(2,603 Views)