Hi Roman,
I understand that you want to connect the same input of a main subsystem to multiple subsystems within the main subsystem in Simulink.
One approach is to use a Bus object as the input to the main subsystem. A Bus object can contain multiple signals, and each subsystem within the main subsystem can extract the desired signals from the Bus object for processing.
Here are steps to do that:
- Define a Bus object that contains the desired signals
busInfo = Simulink.Bus.createObject({'signal1', 'signal2', 'signal3'});
busObject = eval(busInfo.busName);
2. Use the Bus object as the input to the main subsystem.
3. Within each subsystem, use the Bus Selector block to extract the desired signals from the Bus object and perform the required processing.
By utilizing a Bus object and the Bus Selector block, you can effectively share the same input across multiple subsystems within the main subsystem.
Refer to the documentation of “Bus Object” and “Bus Selector” for more information.
Bus Selector - Select elements from input bus - Simulink (mathworks.com)
Hope this helps!