Connect Simulink equations with simscape filter: How?
Mostra commenti meno recenti
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 Commento
Keerthana Ramesh
il 17 Ago 2022
Modificato: Keerthana Ramesh
il 17 Ago 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
Risposte (1)
Dallas Perkins
il 28 Set 2022
0 voti
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
Categorie
Scopri di più su Electrical Block Libraries in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!