slTuner
Interface for control system tuning of Simulink models
Syntax
Description
creates an st
= slTuner(mdl
,tuned_blocks
)slTuner
interface, st
, for
tuning the control system blocks of the Simulink® model, mdl
. The interface adds the linear
analysis points marked in the model as analysis points of st
. The interface also adds
the linear analysis points that imply an opening as permanent openings.
When the interface performs linearization, for example, to tune the blocks, it
uses the model initial condition as the operating point.
adds the specified point to the list of analysis points for
st
= slTuner(mdl
,tuned_blocks
,pt
)st
, ignoring linear analysis points marked in the
model.
specifies the parameters whose values you want to vary when tuning the model
blocks.st
= slTuner(mdl
,tuned_blocks
,param
)
specifies the operating points for tuning the model blocks.st
= slTuner(mdl
,tuned_blocks
,op
)
specifies substitute linearizations of blocks and subsystems. 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.st
= slTuner(mdl
,tuned_blocks
,blocksub
)
configures the linearization algorithm options.st
= slTuner(mdl
,tuned_blocks
,options
)
Object 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
commands include systune
, looptune
,
getIOTransfer
, and getLoopTransfer
. For
more information about linearization, see What Is Linearization?
Examples
Input Arguments
Properties
slTuner
object properties include:
|
Blocks to be tuned in When you create an |
|
Sampling time for analyzing and tuning Set this property using dot notation ( Default: 0 (implies continuous-time) |
|
Parameter samples for linearizing Set this property using the If |
|
Operating points for linearizing Set this property using the
If you configure
|
|
Substitute linearizations for blocks and model subsystems, specified as a structure or structure array. Use this property to specify a custom linearization for a block or subsystem. You also can use this syntax for blocks that do not have analytic linearizations, such as blocks with discontinuities or triggered subsystems. Set this property using the |
|
Linearization algorithm options, specified as an option set created using
Set this property using the |
|
Name of the Simulink model to be linearized, specified as a character vector by the
input argument |
|
Unit of the time variable. This property specifies the time units for
linearized models returned by
Default: |
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 |
More About
Algorithms
slTuner
linearizes your Simulink model using the algorithms described in Exact Linearization Algorithm.
Version History
Introduced in R2014a
See 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