This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

When to Use Atomic Subcharts

Consider using atomic subcharts when one or more of these scenarios apply:

ScenarioReason for Using Atomic SubchartsReferenceTutorial

You want to reuse the same state or subchart many times across different charts or models to facilitate large-scale modeling.

You can store an atomic subchart in a library to enable reuse across different charts and models. When you change an atomic subchart in a library, the change propagates to all links.

Comparison of Modeling Methods

Reuse a State Multiple Times in a Chart

You want to use simulation to test your changes, one by one, without recompiling the entire chart.

When you modify an atomic subchart, recompilation occurs for only that object and not the entire chart.

Comparison of Simulation Methods

Reduce the Compilation Time of a Chart

You want to break a chart into standalone parts because multiple people are working on different parts of the chart.

Because atomic subcharts behave as standalone objects, people can work on different parts of a chart without affecting any work that someone else is doing.

Comparison of Editing Methods

Divide a Chart into Separate Units

You want to inspect Simulink® Coder™ or Embedded Coder® generated code manually for a specific part of a chart.

You can specify that code for an atomic subchart appears in a separate file for unit testing.

Comparison of Code Generation Methods

Generate Reusable Code for Unit Testing

Was this topic helpful?