PID EGU to Percentage VI
- Updated2025-07-30
- 2 minute(s) read
Converts an engineering-units input to a percent-of-range output based on the minimum and maximum range settings. Use the DBL instance of this VI to implement a single control loop. Use the DBL Array instance to implement parallel multi-loop control.

You can use the DBL Array instance of this polymorphic VI in multi-loop PID control applications. In this case, the length of the input (EGU) input determines the length of the output array. Other input arrays do not necessarily need to be the same length as the input (EGU) input. This VI resizes other input arrays to the same length as the input (EGU) input as follows:
- If the input array is longer than the input (EGU) input, the input array is truncated to the length of the input (EGU) input. Additional values in the array are not used.
- If the input array is shorter than the input (EGU) input, the last value of the input array is repeated until the size matches that of the input (EGU) input.
In this manner, an input value that must be used for each output calculation does not need to be specified repeatedly in the array passed into this VI. Instead, the array can consist of a single value that is used for each output calculation.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\control\PID\Manual-Automatic Control with Engineering Units.vi