Documentation Center

  • Trial Software
  • Product Updates

setValue

Modify current value of Control Design Block

Syntax

blk = setValue(blk0,val)

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

blk0

Control Design Block whose value is modified.

val

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 sampling time of blk0. For example, if blk0 is a ltiblock.pid block, valid types for val include ltiblock.pid, 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

blk

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

See Also

| |

Was this topic helpful?