Model predictive control toolbox implementation on dSpace board

Hi all.
I am trying to implement an MPC controller on a dSpace board. I set up the model in Simulink, but when I try to build the program, it gets past the process of linking it, but then it fails to make due to an error: ds1005 - RTI: Simstruct error: Parameter number mismatch (501).
When I use a PID controller the the make function succeeds and the code is loaded onto the dspace board.
Any help in resolving this problem would be greatly appreciated.
C.

Answers (1)

It's more of a dSPACE question. Contact dSPACE tech support asking about that error: Parameter number mismatch (501).
Might it be possible that your MPC controller is too large to fit in, considered that you've gone through the process for a PID controller?

Asked:

on 16 Aug 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!