主要内容

Convert from Classic to Simplified Initialization Mode

When you switch initialization modes from classic to simplified, you might encounter conversion issues. To identify and minimize conversion issues, it is recommend that you follow these steps before you switch the initialization mode.

  1. Save the existing model.

  2. Simulate the model and address any errors and warnings.

  3. In the Model Advisor, in the Simulink® checks section, run the checks in the folder Migrating to Simplified Initialization Mode Overview.

  4. Address the issues that Model Advisor identifies.

  5. Simulate the model to make sure that there are no errors and warnings.

  6. Rerun the Model Advisor checks in the folder Migrating to Simplified Initialization Mode Overview check to confirm that the modified model addresses the issues related to initialization.

To convert your model to simplified mode without using the Model Advisor:

  1. Open the Configuration Parameters dialog box. On the Modeling tab of the Simulink toolstrip, in the Setup section, click Model Settings Model Settings button icon..

  2. In the search box, enter Underspecified initialization detection.

  3. From the drop-down list, select Simplified.

For examples of models that have been converted from classic initialization mode to simplified initialization mode, see Classic Initialization Issues and Limitations.

Blocks to Consider

Discrete-Time Integrator Blocks

Discrete-Time Integrator block behaves differently in simplified mode than it does in classic mode. The changes for simplified mode promote more robust and consistent model behavior. For details, see Behavior in Simplified Initialization Mode in the Discrete-Time Integrator block reference documentation.

Library Blocks

Library blocks use the same initialization mode as the model that uses those blocks. However, if any issue is identified by the Model Advisor checks, fix those before converting to simplified mode.

See Also

Topics