Adding one signal to an existing bus without nesting or unfolding
30 次查看(过去 30 天)
显示 更早的评论
What I want to do is pretty simple: add a signal to an existing bus.
But: Putting an existing bus and the respective signal in a bus creator results in nested bus signals and inconsistent names across the model.
One messy way: unfold the existing bus with n signals in a bus selector, put the additional signal and the n signals in an n+1 size buscreator.
A complicated way: initially create the bus with all signals and put in dummy values, then use the bus assignment block.
Shouldn't there be an easier way?
0 个评论
回答(1 个)
AutoEng
2020-8-18
I know it's necroposting, but in 2020 I still missing feature to uppend existing virtual bus with new signals, forming a new virtual bus.
For myself, based on this answer, I have created a dynamic masked subsystem which do a "messy way" from the question automatically.
But my block needs ctrl-D to update what is not so convenient to do each time.
Probably a better way exists. So any enchancements are highly appreciated!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subsystems 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!