Stateflow | ![]() ![]() |
Part of a chart's interface to its Simulink model is set when you specify the properties for a chart. To specify properties for the chart open in Stateflow's diagram editor, do the following:
The following table lists and describes the chart object fields.
Field |
Description |
Name |
Stateflow diagram name; read-only; click this hypertext link to bring the chart to the foreground. |
Simulink Subsystem |
Simulink subsystem name; read-only; click this hypertext link to bring the Simulink subsystem to the foreground. |
Parent |
Parent name; read-only; click this hypertext link to display the parent's property dialog box. |
Update method |
Stateflow lets you specify the method by which a simulation updates (wakes up) a chart in Simulink. Choose from Triggered or Inherited, Sampled, or Continuous. For more information, see Setting the Stateflow Block Update Method. |
Sample Time |
If Update method is Sampled, enter a sample time. |
Enable C-like bit operations |
Select this box to recognize C bitwise operators (~, &, |, ^, >>, and so on) in action language statements and encode them as C bitwise operations. If this box is not selected, the following occurs:
|
No Code Generation for Custom Targets |
Select this box to specify that no code is emitted when building for a custom target. This feature is useful for using Stateflow charts to simulate test environments during simulation testing before building to an actual embedded target. |
Export Chart Level Graphical Functions |
Exports graphical functions defined at the chart's root level. See Exporting Graphical Functions for more information. |
Use Strong Data Typing with Simulink I/O |
If this option is selected, the Chart block for this chart can accept and output signals of any data type supported by Simulink. The type of an input signal must match the type of the corresponding chart input data item (see Defining Input Data). Otherwise, a type mismatch error occurs. If this item is cleared, this chart accepts and outputs only signals of type double . In this case, Stateflow converts Simulink input signals to the data types of the corresponding chart input data items. Similarly, Stateflow converts chart output data (see Defining Output Data) to double if this option is not selected.For fixed-point data, see the note following this table. |
Execute (enter) Chart at Initialization |
Select this option if you want a chart's state configuration to be initialized at time 0 instead of at the first occurrence of an input event. |
Debugger breakpoint |
Select On chart entry to set a debugging breakpoint on entry to this chart. |
Editor |
Select Locked to mark the Stateflow diagram as read-only and prohibit any write operations. |
Description |
Textual description/comment. |
Document Link |
Enter a Web URL address or a general MATLAB command. Examples are www.mathworks.com , mailto:email_address , and edit/spec/data/speed.txt . |
![]() | Labeling Supertransitions | Checking the Chart for Errors | ![]() |