This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Modify current value of Control Design Block


blk = setValue(blk0,val)


blk = setValue(blk0,val) modifies the parameter values in the tunable Control Design Block, blk0, to best match the values specified by val. An exact match can only occur when val is compatible with the structure of blk0.

Input Arguments


Control Design Block whose value is modified.


Specifies the replacement parameters values for blk0. The value val can be any value that is compatible with blk0 without changing the size, type, or sample time of blk0. For example, if blk0 is a tunablePID block, valid types for val include tunablePID, a numeric pid controller model, or a numeric tf model that represents a PID controller. setValue uses the parameter values of val to set the current value of blockname.

Output Arguments


Control Design Block of the same type as blk0, whose parameters are updated to best match the parameters of val.

Introduced in R2011b