Main Content

Validate the Controller Design

To validate thehinfstructcontrol design, analyze the tuned output models described inInterpret the Outputs of hinfstruct. Use these tuned models to examine the performance of the tuned system.

Validating the Design inMATLAB

This example shows how to obtain the closed-loop step response of a system tuned withhinfstructin MATLAB®.

You can use the tuned versions of the tunable components of your system to build closed-loop or open-loop numeric LTI models of the tuned control system. You can then analyze open-loop or closed-loop performance using other Control System Toolbox™ tools.

In this example, create and analyze a closed-loop model of the HDA system tuned inTune the Controller Parameters. To do so, usegetIOTransferto extract from the tuned control system the transfer function between the step input and the measured output.

Try = getIOTransfer(T,'r','y'); step(Try)

Figure contains an axes object. The axes object with title From: r To: y contains an object of type line. This object represents Try.

Validating the Design in金宝app

This example shows how to write tuned values to your Simulink®model for validation.

TheslTunerinterface linearizes your Simulink model. As a best practice, validate the tuned parameters in your nonlinear model. You can use theslTunerinterface to do so.

In this example, write tuned parameters to therct_diskdrivesystem tuned inTune the Controller Parameters.

做的一个副本slTuner控制系统的描述em, to preserve the original parameter values. Then propagate the tuned parameter values to the copy.

ST = copy(ST0); setBlockValue(ST,T);

This command writes the parameter values from the tuned, weighted closed-loop modelTto the corresponding parameters in the interfaceST.

You can examine the closed-loop responses of the linearized version of the control system represented byST. For example:

Try = getIOTransfer(ST,'r','y'); step(Try)

Sincehinfstructtunes a linearized version of your system, you should also validate the tuned controller in the full nonlinear Simulink model. To do so, write the parameter values from theslTunerinterface to the Simulink model.

writeBlockValue(ST)

You can now simulate the model using the tuned parameter values to validate the controller design.

Related Topics