There are many ways to create a subsystem, but the easiest way I found is the following:
First of all, draw the circuit you like in a Simulink model as normally:
Circuit inside subsystem |
Subsytem created |
Notice that the different pins have been created acorded with the signal type inside the block. And if now we double click the model, it can be seen that the input and output pins have been added.
Circuit inside subsytem |
After that, we just need to rename the model and we can use it as a subsystem in a bigger circuit and repeat it as many times as it is needed.
Final circuit with subsytem |
No comments :
Post a Comment