Main Content

Simulink Goto Blocks

Since R2022b

Metric ID

slcomp.SimulinkGotos

Description

Use this metric to count the number of Simulink® Goto blocks in each layer of a unit or component.

Supported Artifacts

You can collect this metric for:

To control what the dashboard classifies as a unit or component, see Categorize Models in Hierarchy as Components or Units.

Collection

To collect data for this metric:

  • In the Model Maintainability Dashboard, point to the Simulink Architecture section and click the Run metrics for widget icon. If you click on the widget in the Gotos row and Count column, you can view a table that shows the number of Goto blocks in each layer of a unit or component.

  • Use getMetrics with the metric identifier slcomp.SimulinkGotos.

Results

For this metric, instances of metric.Result return Value as the number of Goto blocks in each layer of a unit or component.

See Also

Related Topics