Using global structures in matlab functions block(Simulink)
4 ビュー (過去 30 日間)
古いコメントを表示
In the data store memory block, it is not possible to set your variable as a structure since structures are not primitive types. My question is, is there a away to still use global structures in matlab function block?
Thank you very much.
Bethel
0 件のコメント
採用された回答
bethel o
2012 年 8 月 13 日
編集済み: John Kelly
2013 年 11 月 14 日
2 件のコメント
Shruthi Kubatur
2014 年 7 月 22 日
Hi,
Could you please provide more information about it? Did it work? Thank you
その他の回答 (1 件)
TAB
2012 年 8 月 6 日
編集済み: TAB
2012 年 8 月 6 日
AFAIK, it is not possible to use structure as the global data in matlab function block.
Global data in matlab function block always need to be stored with Data store memory block, and Data store memry block do not support structure.
Also if you are using Simulink.Signal object to scope the global data, type of object should be defined explicitly. It can not be structure.
However if you can explore more detail about your requirement, someone can suggest alternative.
3 件のコメント
TAB
2012 年 8 月 7 日
bethel, I am not aware of using java classes with matlab or with simulink. But I don't thing matlab function block supports the use of java classes.
You can post this question in separate thread, may be someone else knows the answer.
参考
カテゴリ
Help Center および File Exchange で Model, Block, and Port Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!