You must specify tuned blocks (for example, C1 and C2) when you create an slTuner
interface.
st = slTuner('scdcascade',{'C1','C2'})
You can modify the list of tuned blocks using addBlock and removeBlock.
To interact with the tuned blocks use:
- getBlockParam, getBlockValue, and getTunedValue to access the tuned block
parameterizations and their current values. - setBlockParam, setBlockValue, and setTunedValue to modify the tuned block
parameterizations and their values. - writeBlockValue to update the blocks in a Simulink model with the current values
of the tuned block parameterizations.
Tuned Variables
Within an slTuner interface, tuned variables are any Control Design Blocks (Control
System Toolbox) involved in the parameterization of a tuned Simulink block, either
directly or through a generalized parametric model. Tuned variables are the parameters
manipulated by tuning commands such as systune.
For Simulink blocks parameterized by a generalized model or a tunable surface:
- getBlockValue provides access to the overall value of the block parameterization. To
access the values of the tuned variables within the block parameterization, use
getTunedValue. - setBlockValue cannot be used to modify the block value. To modify the values of
tuned variables within the block parameterization, use setTunedValue.
For Simulink blocks parameterized by a Control Design Block, the block itself is the tuned
variable. To modify the block value, you can use either setBlockValue or
setTunedValue. Similarly, you can retrieve the block value using either
getBlockValue or getTunedValue.
See Also
genss | getBlockParam | setBlockValue | setTunedValue | slTuner | systune |
writeBlockValue
setBlockParam