user3821411
user3821411

Reputation: 13

Simulink Mask Parameters

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.

Upvotes: 1

Views: 1702

Answers (2)

P0W
P0W

Reputation: 47814

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.)

enter image description here

Upvotes: 1

am304
am304

Reputation: 13876

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.

Upvotes: 0

Related Questions