Hi fraben,
I understand that you would like to know whether you can edit and configure Embedded Coder’s settings from a script and you would like to create a dump of the current configurations as well.
You can obtain the model’s configurations using the “getActiveConfigSet” function. You can use this function as:
cs = getActiveConfigSet(model);
The following documentation link will give you more details about the function:
Once you get the configurations you can interact with code generation options using “get_param” and “set_param”. An example for this would be:
deftParamBehvr = get_param(model,'DefaultParameterBehavior');
set_param(model,'DefaultParameterBehavior',deftParamBehvr)
For creating a dump of the current configuration, you can use the “saveAs” function. This will create a dump of all the configurations in an M file. For example:
You can refer to the below mentioned documentation for further clarifications:
Hope this helps and solves your query regarding editing Embedded Coder configurations programmatically!