Simulink Control Design™ - MathWorks

(Tuis.) #1
Dependencies

This parameter is enabled when Clicking "Update PID Block" writes tuned gains to
the PID block connected to "u" port is selected.

Update PID Block — Write tuned PID gains to target controller block
button

The block does not automatically push the tuned gains to the target PID block. If your PID
controller block meets the criteria described in the Specify PID block path
parameter description, after tuning, click this button to transfer the tuned gains to the
block.

You can update the PID block while the simulation is running, including when running in
external mode. Doing so is useful for immediately validating tuned PID gains. At any time
during simulation, you can change parameters, start the experiment again, and push the
new tuned gains to the PID block. You can then continue to run the model and observe the
behavior of your plant.

Export to MATLAB — Send experiment and tuning results to MATLAB workspace
button

When you click this button, the block creates a structure in the MATLAB workspace
containing the experiment and tuning results. This structure, OnlinePIDTuningResult,
contains the following fields:


  • P, I, D, N — Tuned PID gains. The structure contains whichever of these fields are
    necessary for the controller type you are tuning. For instance, if you are tuning a PI
    controller, the structure contains P and I, but not D and N.

  • TargetBandwidth — The value you specified in the Target bandwidth (rad/sec)
    parameter of the block.

  • TargetPhaseMargin — The value you specified in the Target phase margin
    (degrees) parameter of the block.

  • EstimatedPhaseMargin — Estimated phase margin achieved by the tuned system.

  • Controller — The tuned PID controller, returned as a pid (for parallel form) or
    pidstd (for ideal form) model object.

  • Plant — The estimated plant, returned as an frd model object. This frd contains the
    response data obtained at the experiment frequencies [1/3, 1, 3, 10]ωc.

  • PlantNominal — The plant input and output at the nominal operating point when the
    experiment begins, specified as a structure having fields u (input) and y (output).


16 Blocks — Alphabetical List

Free download pdf