Stateflow | ![]() ![]() |
Arrays in Action Language
This section tells you how to use Stateflow data arrays in action language. See the following topics:
Array Notation
Use C style syntax in the action language to access array elements.
As an exception to this style, scalar expansion is available within the action language. This statement assigns a value of 10 to all the elements of the array local_array
.
Scalar expansion is available for performing general operations. This statement is valid if the arrays array_1
, array_2
, and array_3
have the same value for the Sizes property.
Arrays and Custom Code
Stateflow action language provides the same syntax for Stateflow arrays and custom code arrays.
See also Integrating Custom Code with Stateflow Diagrams.
Note Any array variable that is referred to in a Stateflow chart but is not defined in the data dictionary is identified as a custom code variable. |
![]() | Data and Event Arguments | Event Broadcasting | ![]() |