Using Simulink    

Creating a Subsystem by Adding the Subsystem Block

To create a subsystem before adding the blocks it contains, add a Subsystem block to the model, then add the blocks that make up the subsystem:

  1. Copy the Subsystem block from the Signals & Systems library into your model.
  2. Open the Subsystem block by double-clicking it.
  1. Simulink opens the subsystem in the current or a new model window, depending on the model window reuse mode that you selected (see Window Reuse).

  1. In the empty Subsystem window, create the subsystem. Use Inport blocks to represent input from outside the subsystem and Outport blocks to represent external output.
  1. For example, the subsystem shown includes a Sum block and Inport and Outport blocks to represent input to and output from the subsystem.


  Creating Subsystems Creating a Subsystem by Grouping Existing Blocks