Simulink Signal Lines Distribution
Metric ID
slcomp.SignalLinesDistribution
Description
Use this metric to determine the distribution of the number of signal lines in a unit or component.
The metric uses find_system
to find the signal lines.
The metric includes:
Simulink® signal lines that the model uses
Commented lines
Each individual branch line
Unterminated lines
Supported Artifacts
You can collect this metric for Units and Components. 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, use getMetrics
with the metric
identifier slcomp.SignalLinesDistribution
.
Results
For this metric, instances of metric.Result
return
Value
as a distribution structure that contains these fields:
BinCounts
— The number of artifacts in each bin, returned as a vector.BinEdges
— Bin edges for the number of signal lines, returned as a vector.BinEdges(1)
is the left edge of the first bin andBinEdges(end)
is the right edge of the last bin. The length ofBinEdges
is one more than the length ofBinCounts
.
The bins in this metric result correspond to the bins in the Signal Lines row and Distribution column in the Simulink Architecture section.