Simulink Control Design™ - MathWorks

(Tuis.) #1

Specify the floating-point precision based on simulation environment or hardware
requirements.


Programmatic Use
Block Parameter: BlockDataType
Type: character vector
Values: 'double' | 'single'
Default: 'double'


Clicking "Update PID Block" writes tuned gains to the PID block
connected to "u" port — Automatically detect target for writing tuned PID
coefficients
on (default) | off


Under some conditions, the autotuner block can write tuned gains to a standard or
custom PID controller block. To indicate that the target PID controller is the block
connected to the u port of the autotuner block, select this option. To specify a PID
controller that is not connected to u, clear this option.


To write tuned gains from the autotuner block to a PID controller anywhere in the model,
the target block must be either:



  • A PID Controller or Discrete PID Controller block.

  • A masked subsystem in which the PID coefficients are mask parameters named P, I, D,
    and N, or whatever subset of these parameters exist in the your controller. For
    example, if you use a custom PI controller, then you only need mask parameters P and
    I.


Specify PID block path — Target PID controller block for writing tuned
coefficients
[] (default) | block path


Under some conditions, the autotuner block can write tuned gains to a standard or
custom PID controller block. Use this parameter to specify the path of the target PID
controller.


To write tuned gains from the autotuner block to a PID controller anywhere in the model,
the target block must be either:



  • A PID Controller or Discrete PID Controller block.

  • A masked subsystem in which the PID coefficients are mask parameters named P, I, D,
    and N, or whatever subset of these parameters exist in your controller


Closed-Loop PID Autotuner
Free download pdf