Why can't we call struct array in C language mode in stateflow
1 回表示 (過去 30 日間)
古いコメントを表示
I set the action language of stateflow to C language, and call the structure in stateflow like this;
"length = linkObjectS.adasDataInfo[0].length"
But there are always compilation errors.
"Indexing into arrays of structures is not supported in C action language."
But what is written in the help document can be used in this way
“In diagrams using C as the action language, use the 0-based index separated by square brackets。”
0 件のコメント
回答 (1 件)
Muthukumar Ganesan
2022 年 7 月 25 日
Hi,
Yes, Stateflow doesn't support accessing Bus arrays but it is possible with some workaround. I have prepared one and it is available here. Hope this helps.
Thanks.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!