Bus Creator position by script
显示 更早的评论
Hello,
I need to add inputs to a bus creator by scripts. Thats not a problem, but aline the bus creator then properly is not that easy, as the upper and lower end is also changing, so just adding the distance of the input blocks to the bus creator position does not work. I couldn't find out a reasonable pattern how it is changing, also for different distances of the input it seams that the ends are differently changing ... is there a pattern or an method to have a nice bus creator alignement ?
回答(1 个)
Will
2026-7-31,8:08
0 个投票
I'm also suffered from this problem, The final solution is bypassing the size of the Bus creator or selector it's self.
To add a bus creator or selector with the correct ports and size first, and then get to position of the ports, add other blocks according to the position of ports.
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!