Main Content

Find Model Advisor Check IDs

An ID is a unique identifier for a Model Advisor check. You find check IDs in the Model Advisor, using check context menus.

To FindDo This
Check Title, ID, or location of the MATLAB® source code
  1. On the model window toolbar, in the Modeling tab, select Model Advisor to open the Model Advisor.

  2. Select a check from the Check Selector window.

  3. In the right pane of the Model Advisor window, the Model Advisor window displays the check Title, TitleID, and location of the MATLAB source code for the check.

Check ID
  1. In the left pane of the Model Advisor, select the check.

  2. Right-click the check name and select Send Check ID to Workspace. The ID is displayed in the Command Window and sent to the base workspace.

Check IDs for selected checks in a folder
  1. In the left pane of the Model Advisor, select the checks for which you want IDs. Clear the other checks in the folder.

  2. Right-click the folder and select Send Check ID to Workspace. An array of the selected check IDs are sent to the base workspace.

If you know a check ID from a previous release, you can find the current check ID using the ModelAdvisor.lookupCheckID function. For example, the check ID for Check for root Outports with missing range definitions (Simulink Check) prior to Release 2018b was mathworks.iec61508.OutportRange. Using the ModelAdvisor.lookupCheckID function returns:

>> NewID = ModelAdvisor.lookupCheckID('mathworks.iec61508.OutportRange')

NewID =
'mathworks.hism.hisl_0026'

See Also

(Simulink Check)

Related Examples

More About