- The Simulink blocks (source blocks) can be connected to Simscape diagram using Simulink-PS Converter and similarly, the Simscape diagram can be connected to Simulink block (sink block) using the PS-Simulink Converter. Please refer to the following documentation link on how to connect Simscape diagrams with Simulink blocks: https://www.mathworks.com/help/physmod/simscape/ug/connecting-simscape-diagrams-to-simulink-sources-and-scopes.html
- Another possible workaround is to connect two Simulink blocks using the “add_line” function. The “add_line” function can be used to add a line connecting one block’s input to another block’s output port from the command line. Please refer to the following documentation link for details regarding the “add_line” function: https://www.mathworks.com/help/simulink/slref/add_line.html
Connect Simulink equations with simscape filter: How?
2 views (last 30 days)
Show older comments
I built a low pass filter with electronic components using Simulink with the Simcsape library. I would like to use this as a box in Simulink, but I can't connect the contacts. Do you have an idea how I can connect this to my model?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1098040/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1098040/image.png)
1 Comment
Keerthana Ramesh
on 17 Aug 2022
Edited: Keerthana Ramesh
on 17 Aug 2022
Hi,
I hope the above information helps.
Thanks,
Keerthana
Answers (1)
Dallas Perkins
on 28 Sep 2022
Hi Huseyin,
In addition to Keerthana's comment on PS-Simulink Converters and vice-versa, to provide a voltage reference into your circuit through a port you will want to use something like a Controlled Voltage Source, and to get an output measurement you will need to use one of the sensors from the Electrical Sensors library.
Best,
Dallas
0 Comments
See Also
Categories
Find more on Electrical Sensors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!