The Quick Start tool helps you prepare a model for generating code. To start the tool, open the Simulink® Coder™ app. On the C Code tab, click Quick Start.
After you start the tool, you must answer these questions about the code that you want to generate:
What is the type of code output for your generated code?
Does your application require reentrant, multi-instance code?
What is your primary code generation objective?
The tool presents parameter changes required to generated code. If you choose to generate code, the tool applies the parameter changes to your configuration set and generates the code. If your system contains referenced models, the Quick Start tool also applies parameter changes to the referenced models. After code generation, you can view the code generation report and find information on building, customizing, optimizing, and packaging the code. To further customize your generated code, click Finish, and then use the Simulink Coder app. The app provides the tools to control the names and representation of the model data in the generated code. For more information, see Simulink Coder.
To apply configuration parameter changes to a model that has an active configuration reference, the Quick Start tool:
QuickStart_timestamp in the workspace or
data dictionary that contains the original configuration set. The new object is a copy
of the original configuration set that has the parameter changes applied.
Simulink.ConfigSetRef object that points to the new
configuration set object.
Attaches the new configuration reference to the model and makes it the active configuration.
If your system contains referenced models that share your original configuration set, the tool attaches the new configuration reference to the referenced models and makes the new configuration reference the active configuration.
To restore the original configuration set, activate the original
If the Quick Start tool creates the configuration set object in the MATLAB® workspace, you must save the object to preserve the configuration set after the MATLAB session ends. For more information, see Save a Configuration Set.
After you have generated code by using Quick Start tool, possible next steps are:
To control the names and representation of the model data and functions in the generated code, use the Model Data Editor in the Simulink Coder app. For more information, see Simulink Coder.