Implements autotuning using the tuning method associated with the polymorphic instance you select. This VI generates PID parameters based on the Stimulus signal and Response signal you specify. You can use this VI to generate initial parameters when you do not have sufficient information about the system you want to tune. You must manually select the polymorphic instance to use.

Note This instance uses the Chien-Hrones-Reswick tuning method.


icon

Inputs/Outputs

  • cu16.png Tuning specifications

    Tuning specifications specifies which formula to use to convert the model to PID parameters.

    This input provides formulas for 0% and 20% overshoot.

    0Regulator - 0%
    1Regulator - 20%
    2Servo - 0%
    3Servo - 20%
  • cu16.png Type of Controller

    Type of Controller specifies which parameters to return as the PID gains.

    0P—(Default) Specifies to return only the proportional parameters.
    1PI—Specifies to return the proportional and integral parameters.
    2PID—Specifies to return the proportional, integral, and derivative parameters.
  • c1ddbl.png Stimulus signal

    Stimulus signal specifies an array that represents the stimulus signal.

  • c1ddbl.png Response signal

    Response signal specifies an array that represents the response signal.

  • cbool.png closed-loop?

    closed-loop? specifies whether the system is a closed-loop system. If you set closed-loop? to TRUE, this VI estimates open-loop parameter values based on the closed-loop values it identifies from the input signals.

  • cdbl.png dt (s)

    dt (s) specifies the interval, in seconds, at which this VI is called. If dt (s) is less than or equal to zero, this VI uses an internal timer with a one millisecond resolution. The default is 0.

  • cdbl.png Controller Gain (K)

    Controller Gain (K) specifies an initial value for the controller gain, which this VI uses to calculate the integral time (Ti, min) component of PID gains. The default is 0.

  • idbl.png stimulus offset

    stimulus offset returns the calculated stimulus offset for the plant.

  • idbl.png response offset

    response offset returns the calculated response offset for the plant.

  • inclst.png PID gains

    PID gains returns the calculated PID gains values for the plant.

  • idbl.png proportional gain (Kc)

    proportional gain (Kc) returns the proportional gain of the controller.

  • idbl.png integral time (Ti, min)

    integral time (Ti, min) returns the integral time in minutes.

  • idbl.png derivative time (Td, min)

    derivative time (Td, min) returns the derivative time in minutes.

  • inclst.png Plant Parameters

    Plant Parameters returns the calculated gain, time constant, and dead time of the plant.

  • idbl.png Plant Gain (K)

    Plant Gain (K) returns the calculated process gain (K).

  • idbl.png Time Constant (T)

    Time Constant (T) returns the calculated time constant (T), in seconds.

  • idbl.png Dead Time (L)

    Dead Time (L) returns the calculated dead time (L), in seconds.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\control\PID\Autotuning PID Offline.vi