MATLAB: Switch case

simulink

i need help here…to run a system in simulink an error is showed : Port 2 of 'final/Subsystem4/Subsystem2/Switch Case' can only be connected to an action subsystem and may not be connected to more than one action subsystem….if possible plz help me here…..

Best Answer

The message is clear. The output of the "Switch Case" block can only be connected to one (and only one) "Switch Case Action Subsystem" block, which can be found in library "Ports & Subsystems". Remember to connect the "Action Port", not the "Inport".
Open sl_subsys_sw1.mdl to see an example.