First of all, thanks a lot for GRAMPC, a truly useful (and elegant) tool!
I have successfully generated an executable of a NMPC. Nevertheless i would like to implement the GRAMPC code in an embedded system (i.e Raspberry Pi ). Is it possible to implement GRAMPC in real-time ? I want to keep GRAMPC running indefinitely and follow new user setpoints. Please could you guide me with some suggestions? Thanks a lot!!
Regards,
Ulices Santa Cruz
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately, we have no experience with the real-time implementation of GRAMPC on a Raspberry Pi. One possibility would be to use the Raspberry Pi Support from Simulink https://www.mathworks.com/hardware-support/raspberry-pi-simulink.html
in combination with the GRAMPC s-function. Another possibility is of course to use GRAMPC directly in a C or C++ program.
In addition, depending on the sampling rate of your system a real-time operating system may be necessary. A guide for installing a real-time kernel can for example be found here http://www.frank-durr.de/?p=203
Best regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Tobias Englert:
First of all, thanks a lot for GRAMPC, a truly useful (and elegant) tool!
I have successfully generated an executable of a NMPC. Nevertheless i would like to implement the GRAMPC code in an embedded system (i.e Raspberry Pi ). Is it possible to implement GRAMPC in real-time ? I want to keep GRAMPC running indefinitely and follow new user setpoints. Please could you guide me with some suggestions? Thanks a lot!!
Regards,
Ulices Santa Cruz
Dear Ulices Santa Cruz,
Unfortunately, we have no experience with the real-time implementation of GRAMPC on a Raspberry Pi. One possibility would be to use the Raspberry Pi Support from Simulink https://www.mathworks.com/hardware-support/raspberry-pi-simulink.html
in combination with the GRAMPC s-function. Another possibility is of course to use GRAMPC directly in a C or C++ program.
In addition, depending on the sampling rate of your system a real-time operating system may be necessary. A guide for installing a real-time kernel can for example be found here
http://www.frank-durr.de/?p=203
Best regards
Thanks a lot !