How to set a parameter to a gain in simulink?
4 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Stalin Samuel
2016-10-7
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 个评论
Stalin Samuel
2016-10-8
编辑:Stalin Samuel
2016-10-8
- 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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!