How to connect a Subsystem’s outputPorts (more than 5) to “Bus Creator” programmatically (from scripting)
Hi, Suppose I have Subsystems block which has outputs more than 5.
I have added "Bus Creator" using:
add_block("simulink/Commonly Used Blocks/Bus Creator","testing_bus/Bus Creator")
This is creating Bus in testing_bus model with only 2 input ports. Is there a way to create a "Bus Creator" with number of inputs = Size of Subsystem’s Outputports?
(or)
edit the number of input port of "Bus Creator" so that later using for loop, for connections by:
add_line(‘testing_bus’,’Subsystem/1′,’Bus Creator/1′);Hi, Suppose I have Subsystems block which has outputs more than 5.
I have added "Bus Creator" using:
add_block("simulink/Commonly Used Blocks/Bus Creator","testing_bus/Bus Creator")
This is creating Bus in testing_bus model with only 2 input ports. Is there a way to create a "Bus Creator" with number of inputs = Size of Subsystem’s Outputports?
(or)
edit the number of input port of "Bus Creator" so that later using for loop, for connections by:
add_line(‘testing_bus’,’Subsystem/1′,’Bus Creator/1′); Hi, Suppose I have Subsystems block which has outputs more than 5.
I have added "Bus Creator" using:
add_block("simulink/Commonly Used Blocks/Bus Creator","testing_bus/Bus Creator")
This is creating Bus in testing_bus model with only 2 input ports. Is there a way to create a "Bus Creator" with number of inputs = Size of Subsystem’s Outputports?
(or)
edit the number of input port of "Bus Creator" so that later using for loop, for connections by:
add_line(‘testing_bus’,’Subsystem/1′,’Bus Creator/1′); bus creator, bus, script, simulink MATLAB Answers — New Questions