Main Content

Simulink Goto Blocks

Metric ID

slcomp.SimulinkGotos

Description

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

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