フィルターのクリア

Adjusting parameters in simulink model from app designer

8 ビュー (過去 30 日間)
J Wells
J Wells 2022 年 5 月 23 日
回答済み: Manas 2023 年 10 月 3 日
Hi there,
I am currently doing a project where i am creating an app for an induction motor model in simulink.
I have used the following code to adjust both StopTime and the value of a Constant Block.
set_param('InductionMotor','Constant',app.FrequencyEditField.Value);
where InductionMotor is the name of my model.
The problem im having is i want to be able to adjust a parameter within a block. For example, the voltage supply to the induction motor. Is there a way to be able to edit the voltage figure from within the app designer.

回答 (1 件)

Manas
Manas 2023 年 10 月 3 日
Hello J Wells,
I understand that you want to adjust the block parameters of a Simulink model from MATLAB app designer.
One way to adjust the variables from the app is by using Simulink.SimulationInput. It has several methods (BlockParameters, Variables) to modify the parameters. To learn about SimulationInput, refer to its documentation: https://in.mathworks.com/help/releases/R2023a/simulink/slref/simulink.simulationinput.html
Hope this helps!

カテゴリ

Help Center および File ExchangeConverters (High Power) についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by