필터 지우기
필터 지우기

Use Simscape parameter as variable in Simulink model

조회 수: 3 (최근 30일)
Toon
Toon 2024년 5월 29일
답변: Yifeng Tang 2024년 6월 3일
I am working on a model where I want to use the power added by a flow rate source block (see image) as input for further control in the simulink model.
Now, I know this parameter exists in the flow rate source block, but I see no way of retrieving it other than viewing its values in the Simscape simulation result explorer window. A separate output on the block itself or a variable from the workspace would be ideal.
Thank you for your help!

답변 (1개)

Yifeng Tang
Yifeng Tang 2024년 6월 3일
If it's in the Simscape Results Explorer, you should be able to use a Probe block to make it available during simulation as a Simulink Signal.
Another way to get the power, is to add flowrate sensors before and after the source, and take the difference in the energy flow (PHI). The difference should be the power added. The value should match the values you get from the source block itself.

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by