Get all the selectors for the block. Then
you can add a rule to exclude or justify a selector. (You can only justify metric
selectors.)
Open the model and turn on coverage recording. Get all
the selectors for the And block.
s =
1×6 heterogeneous Selector (BlockSelector, MetricSelector) array with properties:
Description
Type
Id
ConstructorCode
The block has six selectors. You can index into each one to see the content. The sixth selector is the metric selector that you want to justify.
ans =
MetricSelector with properties:
ObjectiveIndex: 2
OutcomeIndex: 2
Description: 'F outcome of input port 2 in Logic block "And"'
Type: ConditionOutcome
Id: 'sldemo_lct_bus:23'
ConstructorCode: 'slcoverage.MetricSelector(slcoverage.MetricSelectorType.ConditionOutcome,'sldemo_lct_bus:23',2,2)'
Create a justify rule for the selector. Create a filter object and add the rule to
it.
Save and run the filter.