viewSpec
(Not recommended) View tuning goals; validate design against tuning goals
viewSpec
is not recommended. Use viewGoal
instead.
Description
viewSpec(
displays a graphical view
of a tuning goal or vector of tuning goals, specified as
Req
)TuningGoal
objects. The form of the tuning-goal plot depends
on the specific tuning goals you use. Plots for time-domain tuning goals typically
show the target time-domain response specified in the tuning goal. Plots for
frequency-domain tuning goals typically show a shaded area that represents the
region in which the tuning goal is violated.
When you provide a vector of tuning
goals, viewSpec
plots each tuning goal on separate
axes in a single figure window.
viewSpec(
plots the performance of a tuned control system against the tuning goal or goals.
The form of the tuning-goal plot depends on the specific tuning goals you use.
Typically, the plot shows both the target response specified in the tuning goal and
the corresponding response of the control system represented by
Req
,T
)T
. For more information about interpreting tuning-goal
plots, see Visualize Tuning Goals.
Examples
Input Arguments
Tips
With some frequency-domain tuning goals, there might be a difference between the gain profile you specify in the tuning goal (dashed line), and the profile the software uses for tuning (shaded region). In this case, the shaded region of the plot reflects the profile that the software uses for tuning. The gain profile you specify and the gain profile used for tuning might differ if:
You tune a control system in discrete time, but specify the gain profile in continuous time.
The software modifies the asymptotes of the specified gain profile to improve numeric stability.
For more information about how an enforced tuning goal might differ from the goal, see Visualize Tuning Goals.
For MIMO feedback loops, the
LoopShape
,MinLoopGain
,MaxLoopGain
,Margins
,Sensitivity
, andRejection
goals are sensitive to the relative scaling of each SISO loop.systune
tries to balance the overall loop-transfer matrix while enforcing such goals. The optimal loop scaling is stored in the tuned closed-loop modelCL
returned bysystune
. For consistency,viewSpec(R,CL)
takes this scaling into account, and plots the scaled open-loop response or sensitivity. To omit this scaling, useviewSpec(R,CL,[])
.Modifying
CL
might compromise the validity of the stored scaling. Therefore, if you make significant modifications toCL
, retuning is recommended to update the scaling data.
Version History
Introduced in R2012bSee Also
systune
| genss
| evalGoal
| viewGoal
| systune (for slTuner)
(Simulink Control Design)