Automatically Fix Display of Nondefault Block Parameters

To conform with Model Advisor MAAB check Check for nondefault block attributes (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 to open the van der Pol Equation model.

  2. The model has two blocks which do not display nondefault values as annotations. From the Modeling tab, select Model Advisor to open the Model Advisor.

  3. Select By Product > Simulink Check > Modeling Standards > MAAB 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 Highlighting > 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