- Simulink-PS Converter : https://www.mathworks.com/help/simscape/ref/simulinkpsconverter.html
- PS-Simulink Converter : https://www.mathworks.com/help/simscape/ref/pssimulinkconverter.html
Simscape and Referenced model
조회 수: 3 (최근 30일)
이전 댓글 표시
I have a Simscape model of an electrical circuit, which I'll refer to as Model A for simplicity. Model A includes standard inputs and outputs typical of Simscape's physical connections. Additionally, I've created a mask for Model A to adjust certain parameters. Now, I need to integrate Model A into a higher-level model, referred to as Model B. Model B consists of multiple instances of Model A, each with variations in the parameters used. Is it possible to construct a referenced model when dealing with physical connections? How?
댓글 수: 0
채택된 답변
Sayan
2024년 3월 13일
Hi Giovanni,
The Connection Ports do not work with the model references. So you cannot reference Model A and use it in Model B. However, a workaround to this is using the Simulink-PS Converter along with Input port combined as the input and PS-Simulink Converter along with Output port combined as the output to Model A. After this, you can create a subsystem and mask for Model A and reference the system in Model B with a Model reference block.
A similar kind of query has been addressed in the following MATLAB answer : https://www.mathworks.com/matlabcentral/answers/246442-creating-referenced-model-that-contains-physical-modeling-connection-ports
I have attached an example model you can refer to.
You can find more information on Simulink-PS Converter and PS-Simulink Converter blocks in the following documentation.
Hope this answers the query.
추가 답변 (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!