Example: blk = 'scdcascade/C1', blk = "C1"
NotesetBlockValue allows you to modify only the overall value of the
parameterization of blk. To modify the values of elements within custom block
parameterizations, such as generalized state-space models, use setTunedValue.
value — Value of block parameterization
numeric LTI model | control design block
Value of block parameterization, specified as a numeric LTI model (Control System
Toolbox) or a Control Design Block (Control System Toolbox), such tunableGain or
tunablePID. The value of value must be compatible with the parameterization of blk.
For example, if blk is parameterized as a PID controller, then value must be an
tunablePID block, a numeric pid model, or a numeric tf model that represents a PID
controller.
setBlockValue updates the value of the parameters of the tuned block based on the
parameters of value. Using setBlockValue does not change the structure of the
parameterization of the tuned block. To change the parameterization of blk, use
setBlockParam. For example, you can use setBlockParam to change a block
parameterization from tunablePID to a three-pole tunableTF model.
blkValues — Values of multiple block parameterizations
structure
Values of multiple block parameterizations, specified as a structure with fields specified
as numeric LTI models or Control Design Blocks. The field names are the names of blocks
in st. Only blocks common to st and blkValues are updated, while all other blocks in
st remain unchanged.
To specify blkValues, you can retrieve and modify the block parameterization value
structure from st.
blkValues = getblockValue(st);
blkValues.C1 = pid(0.1,0.2);
NoteFor Simulink blocks whose names are not valid field names, specify the
corresponding field name in blkValues as it appears in the block parameterization.
15 Alphabetical List