Connect Simulink equations with simscape filter: How?
Ältere Kommentare anzeigen
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?

1 Kommentar
Keerthana Ramesh
am 17 Aug. 2022
Bearbeitet: Keerthana Ramesh
am 17 Aug. 2022
Hi,
- 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
I hope the above information helps.
Thanks,
Keerthana
Antworten (1)
Dallas Perkins
am 28 Sep. 2022
0 Stimmen
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
Kategorien
Mehr zu Electrical Block Libraries finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!