Main Content

setValue

Modify current value of control design block

Description

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

collapse all

Control design block whose value is modified.

Replacement parameters values for blk0, specified as numeric values or model objects. 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

collapse all

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

Version History

Introduced in R2011b