Model Parameter Configuration Dialog Box
The Model Parameter Configuration dialog box allows
you to declare specific tunable parameters when you set Default parameter
behavior to Inlined
. The parameters that you
select appear in the generated code as tunable parameters. For more information about
Default parameter behavior, see Default parameter behavior (Simulink Coder).
To declare tunable parameters, use Simulink.Parameter
objects instead
of the Model Parameter Configuration dialog box. See Create Tunable Calibration Parameter in the Generated Code (Simulink Coder).
Note
Simulink®
Coder™ software ignores the settings of this dialog box if a model contains
references to other models. However, you can still generate code that uses tunable
parameters with model references, using Simulink.Parameter
objects. See
Create Tunable Calibration Parameter in the Generated Code (Simulink Coder).
The dialog box has the following controls.
Source list
Displays a list of workspace variables. The options are:
MATLAB® workspace — Lists all variables in the MATLAB workspace that have numeric values.
Referenced workspace variables — Lists only those variables referenced by the model.
Refresh list
Updates the source list. Click this button if you have added a variable to the workspace since the last time the list was displayed.
Add to table
Adds the variables selected in the source list to the adjacent table of tunable parameters.
New
Defines a new parameter and adds it to the list of tunable parameters. Use this button to create tunable parameters that are not yet defined in the MATLAB workspace.
Note
This option does not create the corresponding variable in the MATLAB workspace. You must create the variable yourself.
Storage class
Used for code generation. For more information, see Choose Storage Class for Controlling Data Representation in Generated Code (Simulink Coder).
Storage type qualifier
Used for code generation. For variables with a storage class other than
Auto
, you can add a qualifier (such as
const
or volatile
) to the generated
storage declaration. To do so, you can select a predefined qualifier from the list,
or add qualifiers not in the list by typing them in.
Related Topics
- Model Configuration Parameters: Code Generation Optimization (Simulink Coder)
- How Generated Code Stores Internal Signal, State, and Parameter Data (Simulink Coder)