Convert PID Gains
- Updated2025-01-28
- 4 minute(s) read
Converts PID gains in the Academic, Parallel, or Series form to the normalized Parallel form that the PID VI expects.

Inputs/Outputs
gains pattern (Parallel)
—
gains pattern specifies the form of the PI gains.
proportional
—
proportional specifies the value of the proportional gain.
integral
—
integral specifies the value of the integral gain.
sampling time
—
sampling time specifies the loop time, in seconds, at which the PID loop on the FPGA target runs.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
proportional unit (Gain (K))
—
proportional unit specifies the unit of the proportional gain. The relationship between the available units is K = 100 / PB.
integral unit (Hz)
—
integral unit specifies the units of the integral gain.
gains
—
gains returns the normalized PI gain parameters.
error out
—
error out contains error information. This output provides standard error out functionality. |
Use the following table to understand the details about the equations that the Convert PID Gains VI uses when converting the PID gains. The converted PID gains are Kp, Ki, and Kd, respectively.
| Original PID Form | Original Gains: Units | Conversion Equations |
|---|---|---|
| Academic | Kc: Gain (K) |
|
| Ti: s | ||
| Td: s | ||
| Parallel | Kp': Gain (K) |
|
| Ki': Hz | ||
| Kd': s | ||
| Series | KC': Gain (K) |
|
| TI': s | ||
| TD': s |
Examples
Refer to the following example files included with LabVIEW FPGA Module.
- labview\examples\CompactRIO\FPGA Fundamentals\FPGA Math and Analysis\Floating-point PID\Multi-Channel PID\Multi-Channel PID.lvproj
- labview\examples\CompactRIO\FPGA Fundamentals\FPGA Math and Analysis\Floating-point PID\Multi-Rate PID\Multi-Rate PID.lvproj
- labview\examples\R Series\FPGA Fundamentals\FPGA Math and Analysis\Floating-point PID\Multi-Channel PID\Multi-Channel PID.lvproj
- labview\examples\R Series\FPGA Fundamentals\FPGA Math and Analysis\Floating-point PID\Multi-Rate PID\Multi-Rate PID.lvproj
gains pattern (Parallel)
—
proportional
—
error in (no error)
—
gains
—
proportional gain
—
error out
—














