I have a complex project that I am generating code for. The Simulink model uses block paramters that are defined in the matlab workspace by configuration files. The config files look like the following:
assignin('caller','config',config)
The generated C++ code declare these param1 and param2 as global variables and the step function has the following declaration:
The parameters are declared in Model_private.h like this:
/* Imported (extern) block paramters */
I want the code generated so that I can pass param1 and param2 to the step function so that the declaration looks like this:
void Model_step(param_type);
How can I do that?