PID Autotuning Design (Internal Model Control) VI
- Updated2025-07-30
- 4 minute(s) read
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.

Inputs/Outputs
Desired Time Constant (tau_c)
—
Desired Time Constant (tau_c) specifies a time constant value at which you want the system to perform after you close the loop. This VI uses this value to adjust the PID gains according to the internal model control method and as appropriate for a first-order model with delay.
Type of Controller
—
Type of Controller specifies which parameters to return as the PID gains.
Stimulus signal
—
Stimulus signal specifies an array that represents the stimulus signal.
Response signal
—
Response signal specifies an array that represents the response signal.
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.
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.
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.
stimulus offset
—
stimulus offset returns the calculated stimulus offset for the plant.
response offset
—
response offset returns the calculated response offset for the plant.
PID gains
—
PID gains returns the calculated PID gains values for the plant.
Plant Parameters
—
Plant Parameters returns the calculated gain, time constant, and dead time of the plant.
|
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\control\PID\Autotuning PID Offline.vi
Desired Time Constant (tau_c)
—
Type of Controller
—
Stimulus signal
—
closed-loop?
—
stimulus offset
—
PID gains
—