MATLAB: Where can I find the “Two-Way Connection” block in R2020a

blockSimscapesimulinktwoway

Using my models in R2020a , I am not able to find the Simscape block "Two-Way Connection" in the Library Browser. How can I add the "Two-Way Connection" block to my model in R2020a ?

Best Answer

The two-way connection has been removed from the Simscape Utilities library, but is still fully supported. The Two-Way Connection block is now part of Simulink. You can add the Two-Way Connection block to a model from the MATLAB command-line:
add_block('built-in/TwoWayConnection','MyModel/myBlockName')
Note that the Two-Way Connection block can also be found in the Powertrain Blockset and Vehicle Dynamics Blockset libraries, see the documentation here: