|On this page…|
To simulate your model more quickly, disable options as described in the steps that follow:
This option enables automatically when you use the Stateflow® Debugger to start a model simulation. You can also control chart animation separately in the Debugger. (The Stateflow Debugger works only with simulation targets. Therefore, you cannot generate debugging/animation code for embeddable targets, even if you enable this option.)
Detect wrap on overflow (with debugging) — Clear this check box to disable overflow detection of Stateflow data in the generated code. Overflow occurs for data when a value is assigned to it that exceeds the numeric capacity of its type.
Note: The Detect wrap on overflow (with debugging) option is important for fixed-point data. For more information, see Detect Overflow for Fixed-Point Types.
To detect overflow in data during simulation, you must also select the Data Range check box in the Debugger window. See Data Range Violations in a Chart for more details.
During model simulation, any open charts with animation enabled take longer to simulate. If you keep all charts closed, you can speed up the simulation.
During model simulation, any open Scope blocks continuously update their display. If you keep all Scope blocks closed, you can speed up the simulation. After the simulation ends, you can open the Scope blocks to view the results.
When your model has multiple charts that contain the same elements, you might generate multiple copies of identical simulation code. By using library charts, you can minimize the number of copies of identical simulation code. For example, using five library charts reduces the number of identical copies from five down to one.
For more information about using library charts, see Create Specialized Chart Libraries for Large-Scale Modeling.