How to assign the constant value from the value of resistor in Simulink.

13 次查看(过去 30 天)
I need to assign the constant value from the value of resistor in Simulink.
That is, Constant value == Resistor value.
If i change the resistance value, then the constant value need to be updated automatically
Thanks

回答(1 个)

Yuvraj Singh
Yuvraj Singh 2023-2-20
Hi Singaravelan,
To assign a variable value to a resistor block you can either assign a variable which is already present in the workspace or use Model Callbacks.
Refer to the following documentation to initialize a variable using Model Callbacks.

类别

Help CenterFile Exchange 中查找有关 Model, Block, and Port Callbacks 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by