Change asynchronous machine block parameter during run time

조회 수: 3 (최근 30일)
Ryhze
Ryhze 2023년 8월 26일
답변: Govind KM 2024년 9월 12일
Is there a way to change the value of the rotor resistance parameter during simulink runtime.
I have tried a few ways such as assigning a value to a input variable and trying to assign that variable to the rotor resistance value. But the block does not recognise that variable.
I have tried to use the simulink model properties initfunction and then try to change the value using pausefunction but that doesn't work.
I have tried to use set_param but my error is as follows.
Some of the error codes:
Is there any workaround for this?

답변 (1개)

Govind KM
Govind KM 2024년 9월 12일
I understand that you want to change the parameters of the “Asynchronous Machine” block at model runtime. However, as per the documentation, the value of run-time parameters of Simscape blocks cannot be changed while simulation is running. As the “Asynchronous Machine” block is a part of the “Specialized Power Systems” library in Simscape, its parameters can only be modified when simulation is stopped. You can find more information in the below provided documentation:
Hope this clarifies the issue.

카테고리

Help CenterFile Exchange에서 Run-Time Parameters에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by