slTuner
Interface for control system tuning of Simulink models
Description
slTuner
provides an interface between a Simulink® model and the tuning commands systune
and looptune
.
slTuner
allows you to:
Specify the control architecture.
Designate and parameterize blocks to be tuned.
Tune the control system.
Validate design by computing linearized open-loop and closed-loop responses.
Write tuned values back to the model.
Because tuning commands such as systune
operate on linear models, the
slTuner
interface automatically computes and stores a linearization of your
Simulink model. This linearization is automatically updated when you change any
properties of the slTuner
interface. The update occurs when you call commands
that query the linearization stored in the interface, such as systune
,
looptune
, getIOTransfer
, and
getLoopTransfer
.
You can configure the slTuner
interface to linearize a model at a range
of operating points and specify variations for model parameter values. You can use analysis points and permanent openings to obtain
linearizations for any open-loop or closed-loop transfer function from a model. You can then
analyze the stability, or time-domain or frequency-domain characteristics of the linearized
models.
An slTuner
interface linearizes your Simulink model using the algorithms described in Exact Linearization Algorithm.
Creation
Syntax
Description
returns an st
= slTuner(model
,tunedBlocks
)slTuner
interface for tuning the control system blocks
specified by tunedBlocks
in the Simulink model model
and sets the Model
and
TunedBlocks
properties. The interface adds the linear analysis
points marked in the model as analysis points and also adds the linear analysis points
that imply an opening as permanent openings.
adds the analysis points in st
= slTuner(model
,tunedBlocks
,pt
)pt
to the list of analysis points for
st
, ignoring linear analysis points marked in the model.
specifies the parameters whose values you want to vary when linearizing the model and sets
the st
= slTuner(model
,tunedBlocks
,param
)Parameters
property to param
.
specifies the operating points for linearizing the model and sets the
st
= slTuner(model
,tunedBlocks
,op
)OperatingPoints
property to op
.
specifies substitute linearizations of blocks and subsystems and sets the
st
= slTuner(model
,tunedBlocks
,blocksub
)BlockSubstitutions
property to blocksub
. Use
this syntax, for example, to specify a custom linearization for a block. You can also use
this syntax for blocks that do not linearize successfully, such as blocks with
discontinuities or triggered subsystems.
configures the linearization algorithm options and sets the st
= slTuner(model
,tunedBlocks
,opt
)Options
property to opt
.
creates an st
= slTuner(model
,tunedBlocks
,pt
,op
,param
,blocksub
,options
)slTuner
interface using any combination of
pt
, op
, param
,
blocksub
, and options
in any order.
If you do not specify pt
, the interface adds the linear analysis
points marked in the model as analysis points. The interface also adds linear analysis
points that imply an opening as permanent openings.
Input Arguments
Properties
Object Functions
addBlock | Add block to list of tuned blocks for slTuner interface |
addOpening | Add signal to list of openings for slLinearizer or slTuner interface |
addPoint | Add signal to list of analysis points for slLinearizer or slTuner interface |
getPoints | Get list of analysis points for slLinearizer or slTuner interface |
getOpenings | Get list of openings for slLinearizer or slTuner interface |
getBlockParam | Get parameterization of tuned block in slTuner interface |
getBlockValue | Get current value of tuned block parameterization in slTuner interface |
getTunedValue | Get current value of tuned variable in slTuner interface |
getBlockRateConversion | Get rate conversion settings for tuned block in slTuner interface |
setBlockParam | Set parameterization of tuned block in slTuner interface |
setBlockValue | Set value of tuned block parameterization in slTuner interface |
setBlockRateConversion | Set rate conversion settings for tuned block in slTuner interface |
systune | Tune control system parameters in Simulink using slTuner interface |
looptune | Tune MIMO feedback loops in Simulink using slTuner interface |
loopview | Graphically analyze results of control system tuning using slTuner interface |
looptuneSetup | Construct tuning setup for looptune to
tuning setup for systune using slTuner interface |
showTunable | Show value of parameterizations of tunable blocks of slTuner interface |
getIOTransfer | Transfer function for specified I/O set using slLinearizer or slTuner interface |
getLoopTransfer | Open-loop transfer function at specified point using slLinearizer or slTuner interface |
getSensitivity | Sensitivity function at specified point using slLinearizer or slTuner interface |
getCompSensitivity | Complementary sensitivity function at specified point
using slLinearizer or slTuner interface |
writeBlockValue | Update block values in Simulink model |
writeLookupTableData | Update portion of tuned lookup table |
removePoint | Remove point from list of analysis points in slLinearizer or slTuner interface |
removeAllPoints | Remove all points from list of analysis points in slLinearizer or slTuner interface |
removeAllOpenings | Remove all openings from list of permanent openings in
slLinearizer or slTuner interface |
refresh | Resynchronize slLinearizer or slTuner interface
with current model state |
Examples
Limitations
Linearization is not supported for model hierarchies that contain referenced models configured to use a local solver.
Linearization is not supported for Simscape™ networks configured to use a local solver.
More About
Alternatives
To interactively tune Simulink models, use the Control System Tuner app.
Version History
Introduced in R2014aSee Also
systune
| looptune
| addPoint
| addOpening
| getIOTransfer
| getLoopTransfer
| getSensitivity
| getCompSensitivity
| linearize
Topics
- Mark Signals of Interest for Control System Analysis and Design
- How the Software Treats Loop Openings
- Create and Configure slTuner Interface to Simulink Model
- Vary Parameter Values and Obtain Multiple Transfer Functions
- Tune Control Systems in Simulink
- Fault-Tolerant Control of a Passenger Jet
- Multi-Loop PI Control of a Robotic Arm