Main Content
Stateflow.AtomicBox
Atomic box in chart, state, box, or function
Description
Use Stateflow.AtomicBox
objects to encapsulate graphical, truth
table, MATLAB®, and Simulink® functions in a separate namespace. Atomic boxes allow for:
Faster simulation after making small changes to a function in a chart with many states or levels of hierarchy
Reuse of the same functions across multiple charts and models
Ease of team development for people working on different parts of the same chart
Manual inspection of generated code for a specific function in a chart
For more information, see Reuse Functions by Using Atomic Boxes.
Creation
Description
Input Arguments
Properties
Object Functions
getParent | Identify parent of object |
getReferences | Identify references to symbol name |
renameReferences | Rename symbol and update references to symbol name |
commentedBy | Identify objects that implicitly comment out a graphical object |
getMappingForSymbol | Get mapping for symbol in atomic subchart, atomic box, or Simulink based state |
setMappingForSymbol | Set mapping for symbol in atomic subchart, atomic box, or Simulink based state |
clearMappingForSymbol | Clear mapping for symbol in atomic subchart, atomic box, or Simulink based state |
disableMappingForSymbol | Disable input event in atomic subchart or box |
dialog | Open properties dialog box |
view | Display object in editing environment |
highlight | Highlight graphical object |
fitToView | Zoom in on graphical object |