Main Content

disableMappingForSymbol

Disable input event in atomic subchart or box

Since R2022b

Description

example

disableMappingForSymbol(subsystem,subsystemEvent) disables the input event subsystemEvent in the atomic subchart or atomic box subsystem. For more information, see Map Input Events for an Atomic Subchart.

Examples

collapse all

In an atomic subchart called A, disable the input event E.

Access the Stateflow.AtomicSubchart object for the atomic subchart A.

subchart = find(sfroot,"-isa","Stateflow.AtomicSubchart",Name="A");

Use the Subchart property to access the Stateflow.Event object for the input event E.

subsystemEvent = find(subchart.Subchart, ...
    "-isa","Stateflow.Event",Name="E");

Check the mapping for input event E.

getMappingForSymbol(subchart,subsystemEvent).Name
ans =

    'E'

Disable input event E.

disableMappingForSymbol(subchart,subsystemEvent)
getMappingForSymbol(subchart,subsystemEvent)
ans =
    []

Input Arguments

collapse all

Atomic subchart or atomic box, specified as a Stateflow.AtomicSubchart or Stateflow.AtomicBox object.

Input event in atomic subchart or atomic box, specified as a Stateflow.Event object, a string scalar, or a character vector.

Version History

Introduced in R2022b