- 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 (최근 30일)
이전 댓글 표시
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
Keerthana Ramesh
2022년 8월 17일
편집: Keerthana Ramesh
2022년 8월 17일
Hi,
I hope the above information helps.
Thanks,
Keerthana
답변 (1개)
Dallas Perkins
2022년 9월 28일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Electrical Sensors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!