Simulink Mask Parameters

二次信任 提交于 2019-12-13 00:19:31

问题


I'm trying to create a subsystem that has a transfer function in it. Everything except one coefficient in the denominator is set in this transfer function.

How can I promote only this parameter, instead of promoting the entire denominator of the transfer function into the the subsystem's mask? When the user double clicks on the sub system, I want to make it so the mask only requests this single parameter, rather than the whole denominator. Is this possible?

It's a third order system: [1 (parameter) 9 1].

I want to set the (parameter) coefficient in the mask.


回答1:


Here's what you should be doing :

  • take a Atomic Subsystem
  • add Transfer Fcn block, with Denominator as [1 X 9 1]
  • Mask this Atomic Subsystem, with parameter say X named say Coefficient.

Here's an example, (sorry mine is too old Student's version of matlab, but you'll get what to do.)




回答2:


Put your transfer function in a masked subsystem with one input and one output. Hard-code all the parameters of the transfer function block, except the one of interest, which you can then define as a mask parameter. You can't change the mask of the built-in transfer function block, so you have to create your own mask.



来源:https://stackoverflow.com/questions/24680013/simulink-mask-parameters

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!