Filter löschen
Filter löschen

How to set a parameter to a gain in simulink?

5 Ansichten (letzte 30 Tage)
Kyana Shayan
Kyana Shayan am 7 Okt. 2016
Bearbeitet: Stalin Samuel am 8 Okt. 2016
Hi everyone,
I am trying to make the attached model for my assignment in Simulink, but I keep getting the attached error when I am trying to set a 1/m gain. Anyone knows what is the problem?
Thanks for helping me.

Antworten (1)

Stalin Samuel
Stalin Samuel am 7 Okt. 2016
Make sure that you are getting right value for variable in the gain block. According to me if you know the value m then use the final result of (1/m) in the gain block
  2 Kommentare
Kyana Shayan
Kyana Shayan am 7 Okt. 2016
I am not quite sure if that's the problem. I need to define m as a parameter for the gain, instead of just inserting the value. But I don't know how to do that.
Stalin Samuel
Stalin Samuel am 8 Okt. 2016
Bearbeitet: Stalin Samuel am 8 Okt. 2016
  • In File menu go to "model properties-->Model properties"
  • Model properties window will be opened
  • In which under callbacks section click on InitFcn
  • Then specify the values in Model initialization function editor box
  • Then click on Apply-->OK

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink Environment Customization finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by