Alternative to simulink transparent subsystem -


i need organize set of elements in simulink. first method create subsystem. problem subsystem elements inside no longer visible. alternative method create colorized box , put behind set of elements background. makes lot of troubles during selection of elements.

the ideal method have subsystem transparent can see elements inside it. can make large , see inside without opening it.

what feasible alternative method?

enter image description here

knowing there no support simulink doing this, possibility use mask icon shows content. following rough prototype mask code:

model='s1/subsystem'; loc=fullfile(pwd,[model,'.png']); print(['-s' model], ['-dpng'], '-r300', loc); image(loc); port_label('input',1,'in1'); port_label('output',1,'out1'); 

enter image description here

obviously prototype has multiple issues must addressed when using code:

  • remove hard-coded directory.
  • set in- , outports automatically.
  • create required folder structure. (folder s1 must created once manually)
  • scale subsystem block make image good
  • work if pwd not directory model stored in

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -