MATLAB: Error with variable-size data in Atomic Subcharts
stateflow
I have a stateflow chart that contains an atomic subchart. In the atomic subchart I have a variable-sized array. When I try to run my model I receive the following error "Variable-size arrays are not allowed when a chart is used as an atomic subchart inside another chart. The presence of data 'local_variable_size' is therefore illegal." .
Why am I getting this error?
Related Question
- How to trigger a transition depending on an input’s rise in Stateflow
- Do I receive an internal error when running the chart in Stateflow 5.1.1 (R13SP1)
- Is there an equivalent of “mock functions” for linked atomic subcharts
- Do I get an error stating that recursion is prohibited in Simulink Design Verifier 1.7 (R2010b)
- How to create a Unit Delay block that accepts variable-size signals and does not need to be placed inside a conditionally executed subsystem in Simulink 7.7 (R2011a)
- Can I not use implicit change events on data fed into a Stateflow chart from Simulink
- How can i delete error of variable-size on Simulink
Best Answer
This error is the result of an atomic subchart limitation. Atomic subcharts do not support variable-size arrays, to avoid this error please specify an array size.