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

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

Antworten (1)

Yuvraj Singh
Yuvraj Singh am 20 Feb. 2023
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.

Kategorien

Mehr zu Modeling finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2022a

Gefragt:

am 18 Feb. 2023

Beantwortet:

am 20 Feb. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by