How to autogenerate C++ code¶
Warning
This tutorial is not yet ready
The capability of autogenerating C++ code from a Simulink model is provided by Simulink Coder. BlockFactory received a preliminary support of this toolbox, and only basic features are currently supported. Following the previous how-to, check these links for a simple example:
AutogenerationExample.mdl
A Simulink model with the right configuration of Simulink Coderexample/matlab/AutogenerationExample_grt_rtw
The folder containing the autogenerated sources- 'example/matlab/CMakeLists.txt' The CMake file for compiling the generated code
src/main.cpp
A simple main function to execute the autogenerated code