Main Content

ERT (optimized for floating-point)

Update active configuration parameters of parent model for ERT floating-point code generation

  • Library:
  • Embedded Coder / Configuration Wizards

  • ERT (optimized for floating-point) block

Description

When you add an ERT (optimized for floating-point) block to your Simulink® model and double-click it, a predefined MATLAB® script executes and optimally configures the model parameters for floating-point code generation with the ERT target. Set a block parameter to invoke the build process after configuring the model.

After you double-click the block, open the Configuration Parameters dialog box to see that the model parameter values have changed.

Note

To provide a quick way to switch between configurations, you can include more than one Configuration Wizard block in your model.

Parameters

expand all

Objective for updating the active configuration parameters of a parent model by using a predefined MATLAB script.

Predefined or custom MATLAB script that updates the active configuration parameters of the parent model.

Dependencies

This parameter is only used with the Custom MATLAB file block. To enable this parameter, set Configure the model for to Custom.

If selected, the predefined script initiates the code generation and build process after updating the configuration parameters.

Introduced in R2006b