(ongoing...)
While creation Simulink diagram, it is useful to automaticaly associate inport/outport to requested Simulink object.
As an example, module pbAssociate_trainig_vU0 has been open :
inside the module, select the Subsystem block subsystem :
open slTOOL by clicking slTOOL button :
from the menu, choose the requested associated block, From as an example : ,
once the requested action is correctly parametrized, press Do
As a result, the selected subsystem is connected as requested :
you can choose to not add line. As an example, select the subsystem, select Goto and no lines and press Do
As a result, the selected subsystem is connected as requested :
For associated block From and Goto, if the expected GotoTag is not isvarname in the Matlab sens, it appears gray on orange BackGround with GotoTag set to var.
As an example, select in pbAssociate_training_vU0 the subsystem subsystem1 :
Associate your SubSystem with from and goto, as the input and the output are not isvarname in Matlab sense, associated From and Goto block are gray on orange BackGround and tagged with var :
slTool does the maximum according to your selection and you parameters.
As an example, open module pbAssociate_training_vU1 and unlock it so that you can modify, and select all the blocks :
open slTOOL by clicking slTOOL button :
choose Goto with lines and press Do :
As you can see, all possible associations have been done :
now, if you choose with the same selecton Constant with lines :
You will get :
As you can notice, the inport was not taken into account as it has no inport.
now, if you select only the subsystem :
and choose to connect Terminator with lines :
you can notice that, as all outports are already connected, nothing happened :
To connect Terminator, you must first disconnect the block, this leads to step 4c.
Enable and Trigger port are not supported. As an example, open module pbAssociate_training_vU2 and unlock it :
and associate the subsystem with From and Goto. You will get :