This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Automatically Fix Display of Nondefault Block Parameters

To conform with Model Advisor MAAB check Check for Nondefault Block Attributes (Check ID: mathworks.maab.db_0140), you can use the Add nondefault values into block annotation button to automatically add descriptive text to the model editor window.

  1. At the command prompt, type vdp and press Enter. The Van der Pol equation model opens in the Simulink® editor window.

  2. The model has two blocks which do not display nondefault values as annotations. Run the Model Advisor from Analysis > Model Advisor > Model Advisor.

  3. On the left pane, select By Product > Simulink Check > Modeling Standards > MathWorks Automotive Advisory Board Checks. On the right pane, run the check by selecting Run Selected Checks.

  4. The Model Advisor runs the check and displays a warning for the integrator block that has a nonzero initial condition not currently displayed. On the Model Advisor toolbar, select Enable highlighting () to highlight the blocks causing the warning.

  5. In the right pane of the Model Advisor window, select Add nondefault values into block annotation to automatically add the nondefault attribute and value to the integrator block’s annotation. Model Advisor displays InitialCondition = 2.

  6. Run the check again to clear the warning.

Related Topics