Chart properties allow you to specify how your chart interfaces with the Simulink® model. You can specify properties for a single chart or all charts in a model.
To specify properties for a single chart:
Double-click a chart to open it.
Right-click an open area of the chart and select Properties.
All charts provide general and documentation properties. Charts that use MATLAB as the action language provide an additional tab for specifying fixed-point properties.
C charts provide an additional option for enabling C-bit operations.
Specify properties for the chart.
Stateflow® chart name (read-only). Click this hypertext link to bring the chart to the foreground.
Simulink subsystem name (read-only). Click this hypertext link to bring the Machine properties dialog box to the foreground.
Action language for programming the chart. Choices are
Type of state machine to create. Choices are:
Mealy and Moore charts use a subset of Stateflow chart semantics.
Method by which a simulation updates (wakes up) a chart
in a Simulink model (see Set the Stateflow Block Update Method).
You can select
If Update method is
If Update method is
For C charts only. Select this check box to interpret
the following operators (
If you clear this check box, the following occurs:
Other bit operations such as
User specified state/transition execution order
Select this check box to use explicit ordering of parallel states and transitions (default). In this mode, you have complete control of the order in which parallel states are executed and transitions originating from a source are tested for execution. For more information, see Execution Order for Parallel States and Transition Testing Order in Multilevel State Hierarchy.
Select this check box to export functions defined at the root level of the chart. See Export Stateflow Functions for Reuse for more information.
If selected, the chart accepts input signals of any data type supported by Simulink software, provided that the type of the input signal matches the type of the corresponding chart input data item. If the types do not match, an error occurs.
cleared, the chart accepts and outputs only signals of type
For fixed-point data, the Use Strong Data Typing with Simulink I/O option is always on. If an input or output of fixed-point type in a chart does not match its counterpart in a model, an error occurs.
Select this check box if you want a chart's state configuration to be initialized at time 0 instead of at the first occurrence of an input event (see Execution of a Chart at Initialization).
Interprets the initial value of outputs every time a chart wakes up, not only at time 0. When you set an initial value for an output data object, the output will be reset to that value.
Outputs are reset whenever a chart is triggered, whether by function call, edge trigger, or clock tick.
Enable this option to:
Select to enable charts to take multiple transitions in each time step until it reaches a stable state. For more information, see Execution of a Chart with Super Step Semantics.
If you enable super step semantics, specify the maximum
number of transitions the chart should take in each time step. The
chart always takes one transition during a super step, so the value
If you enable super step semantics, specify how the chart behaves after reaching the maximum number of transitions before taking all valid transitions. Options include:
Select to support chart input and output data that vary in dimension during simulation. For more information, see Declare Variable-Size Inputs and Outputs.
Select to specify that integer overflows saturate in the generated code. For more information, see Handle Integer Overflow for Chart Data.
Select to create data to monitor state activity. Choose:
If your chart uses function-call input events, specify how states behave when the event reenables the chart. Options include:
For more information, see Control States When Function-Call Inputs Reenable Charts.
Select to mark the chart as read-only and prevent any write operations.
For MATLAB charts only. Determines whether to treat inherited
fixed-point and integer signals as Fixed-Point Designer™
For MATLAB charts only. Default
Enter a Web URL address or a general MATLAB® command.
Click one of these buttons:
Apply to save the changes
Cancel to cancel any changes since the last apply
OK to save the changes and close the dialog box
Help to display the online help in an HTML browser window
You can set some properties for all charts in the model by setting properties for the Stateflow machine, which represents all of the Stateflow blocks in a model.
To set properties for the Stateflow machine:
In the Chart properties dialog box for a particular chart, select the Machine link at the top of the dialog box.
The Machine properties dialog box appears.
Enter information in the fields that appear.
Name of the Simulink model that defines this Stateflow machine (read-only). You change the model name in the Simulink window when you save the model under a chosen file name.
Date on which this machine was created, which is read-only.
Name of the person who created this Stateflow machine.
Time of the most recent modification of this Stateflow machine.
Version number of this Stateflow machine.
For C charts only. Select this check box for all new
C charts to interpret the following operators (
You can enable or disable this option for individual C charts in the individual chart's property dialog box. See Set Properties for a Single Chart for a detailed explanation of this property.
Brief description of this Stateflow machine, which is stored with the model that defines it.
MATLAB expression that, when evaluated, displays documentation for this Stateflow machine.
Click one of these buttons:
Apply saves the changes.
Cancel closes the dialog box without making any changes.
OK saves the changes and closes the dialog box.
Help displays the online help in an HTML browser window.