Array of Busses in StateChart - Not able to extract the complete variable values in Stateflow

1 次查看(过去 30 天)
I am using Array of Bus as the input to a Statechart. I am not able to extract the complete values of variable 'a' in the state chart using
ArrayOfVarA1 = [data.a];
It is returning the following error:
Referencing a component from array of non-scalar values is not supported for code generation.
Transition '{Array...ta.a];}'
"[data.a]"
Component:Stateflow | Category:Coder error
Error while generating code for chart Chart.
If we want to individually store the data, the following method is working
ArrayOfVarA1 = data(1).a;
Is there any method to store the 'a' values of my bus to a variable as Array. In Matlab it is working, but in Stateflow it is not working. What is the problem in this implementation?
My need is to get all the 'a' values of the bus FSignal to an array and to check is there any non zero values. It is used to find any failure messages. I am attaching the model for reference.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Complex Logic 的更多信息

产品


版本

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by