Filter löschen
Filter löschen

Change 'Gain parameter' value of Gain block in Model

2 Ansichten (letzte 30 Tage)
Abhijeet Kate
Abhijeet Kate am 4 Dez. 2023
Kommentiert: madhan ravi am 4 Dez. 2023
Hello,
I want to change gain parameter externally.
Is there any option where we can use 'Data memory write' or 'Constant' block as input for the purpose.
Any other option is also appreciated.
Thank you.
  1 Kommentar
Paul
Paul am 4 Dez. 2023
Depends on what "externally" means.
Do you want to change the gain parameter while the simulation is running? If so, what it is the source of the value to which the parameter should be changed?
Or, do you want to change the gain parameter to a value before the simulation runs and have it stay at that value for the entirety of the simulation?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

madhan ravi
madhan ravi am 4 Dez. 2023
Sure, just use a Mask to change the Gain Value.
  5 Kommentare
Abhijeet Kate
Abhijeet Kate am 4 Dez. 2023
I am getting following error
Is there any other way?
madhan ravi
madhan ravi am 4 Dez. 2023
Abhijeet, I know it is frustrating when you learn sommething new. But take your time, plan what you want to do and then explain your use case with an example. There is always a solution but one must be also clear on what they want. Read Paul's comment and reply accordingly.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by