How to rename bus objects in the model explorer?
7 ビュー (過去 30 日間)
古いコメントを表示
I am working with multiple busses objects in order to have a bus creator with a variable number of inputs, so I wanted to alter the name of the resulting bus as I add new bus objects with the same atributes (being able to receive a variable number of inputs). I am working with PostSaveFcn so every time a new bus is added to the bus creator, a new bus object is created.
0 件のコメント
回答 (1 件)
Jesús Zambrano
2019 年 12 月 5 日
Hi Guilherme,
I'm not sure if I understood your question, but here I give you some hints of possible workflow to check:
When you create a bus in the MATLAB workspace, I guess you know that you can see it in the Model Explorer. Once in there, when selecting the bus, you can change the name of the bus and also you will see the "Launch Bus Editor" button on the right-hand side, where you can edit (add/remove elements of the bus, nest buses, etec.).
From the Bus Editor, you can save the bus in a .m or .mat file, and then call it from the model callback.
Hope this answer can help you to solve your question.
Best,
Jesús
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!