Bus Creator position by script
Ältere Kommentare anzeigen
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 ?
Antworten (1)
Will
am 31 Jul. 2026 um 8:08
0 Stimmen
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.
Kategorien
Mehr zu Simulink Functions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!