Using merge block with bus signal inputs.
33 次查看(过去 30 天)
显示 更早的评论
Hi, guys
I am really confused with the 'If/else -> Action -> Merge' pattern in Simulink, especially when working with Bus Signals.
Say, I created a bus with two members, 'a' and 'b', both are scalars with initial value of 0. I want to repeatedly increase 'a' by 1 when it is less than 5, and otherwise do nothing.
I know I could have merged the member 'a' rather than the whole bus signal. It's just an over-simplified version of my real work, which does lots of stuff in the 'If Action Subsystem'.
I was gonna upload a .mdl file to demonstrate my question more clear. Then I found that there is no way to do that here. So, for short, my question is: how to merge bus signals?
Thanks!
Ben
0 个评论
采纳的回答
Kaustubha Govind
2012-11-16
The Merge block does support bus signals. Look for the section called Bus Support in the documentation.
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!