|On this page…|
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:
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.
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 C or MATLAB. For more information, see Modify the Action Language for a Chart.
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 Inherited, Discrete, or Continuous. For more information about continuous updating, see Model Hybrid Systems with Model Logic.
If Update method is Discrete, enter a sample time.
If Update method is Continuous, zero-crossing detection is enabled by default. See When to Enable Zero-Crossing Detection.
For C charts only. Select this check box to interpret the following operators ( ~, &, |, and ^) as C bitwise operators, not logical operators, in action statements (default).
If you clear this check box, the following occurs:
Other bit operations such as >> and << will be interpreted as bit operations regardless of this setting.
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 Functions for Reuse in Other Charts 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.
If cleared, the chart accepts and outputs only signals of type double. In this case, Stateflow software converts Simulink input signals to the data types of the corresponding chart input data items. Similarly, Stateflow software converts chart output data to type double.
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 N that you specify represents the maximum number of additional transitions (for a total of N+1). For more information, see What Is Maximum Number of Iterations? Try to choose a number that allows the chart to reach a stable state within the time step, based on the mode logic of your chart.
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 output port for child state activity. See About Active State Output.
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 set a debugging breakpoint on entry to this chart.
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™ fi objects.
For MATLAB charts only. Default fimath properties for the MATLAB chart. . Otherwise, specify the default fimath properties by constructing the fimath object in the MATLAB or model workspace and setting the property equal to the variable name.
Enter a Web URL address or a general MATLAB® command. Examples are www.mathworks.com, mailto:email_address, and edit/spec/data/speed.txt.
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:
The Machine properties dialog box appears.
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 ( ~, &, |, and ^) as C bitwise operators, not logical operators, in action statements.
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.
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.