Hi,
I'm very sorry for the disturbance. I'm new and I need help please.
I'm currently trying to implement MPC through an ACADO generated S-Function of an embedded dSPACE system. I must run V1 example in the attached file (by Rien Quirynen) using a script that auto generates an S-Function. (or V2 example)
However, I'm still new to using Acado, simulink, and dspace. So I have two questions please:
1) What do you recommend to do to fully understand the codes and their simulink interface and how they work? Is there any tutorial that explains these codes, their simulink, and how to implement them through dSpace?
2) When I try to run the code, I get an error:
"undefined function 'DifferentialState' for input arguments of type 'char'.
Error in ACADO_simulink (line 9)
DifferentialState x1 theta v1 dtheta"
why am I getting this error and how to make it run?
I'm still a beginner so thank you very much for your help.
Hi,
I'm very sorry for the disturbance. I'm new and I need help please.
I'm currently trying to implement MPC through an ACADO generated S-Function of an embedded dSPACE system. I must run V1 example in the attached file (by Rien Quirynen) using a script that auto generates an S-Function. (or V2 example)
This is an excerpt of the Simulink model: (for V1 example)
https://imgur.com/a/eX5YyUC
However, I'm still new to using Acado, simulink, and dspace. So I have two questions please:
1) What do you recommend to do to fully understand the codes and their simulink interface and how they work? Is there any tutorial that explains these codes, their simulink, and how to implement them through dSpace?
2) When I try to run the code, I get an error:
"undefined function 'DifferentialState' for input arguments of type 'char'.
Error in ACADO_simulink (line 9)
DifferentialState x1 theta v1 dtheta"
why am I getting this error and how to make it run?
I'm still a beginner so thank you very much for your help.
Regards,
Alex.
Hello Alex,
it sounds like you have to install ACADO Toolkit first. Then you can run the code.
Just follow these instructions: https://acado.github.io/matlab_overview.html