PID EGU to Percentage VI

Owning Palette: PID VIs

Requires: Full Development System

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.

Details  Example

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

PID EGU to Percentage (DBL)

maximum (EGU) specifies the input value, in engineering units, corresponding to 100% of the full scale.
input (EGU) specifies the input value in engineering units.
minimum (EGU) specifies the input value, in engineering units, corresponding to 0% of the full scale.
% span returns the output value in percentage of full scale.

PID EGU to Percentage (DBL Array)

maximum (EGU) specifies the input value, in engineering units, corresponding to 100% of the full scale. This VI resizes the maximum (EGU) input array to match the % span input array.
input (EGU) specifies the input value in engineering units.
minimum (EGU) specifies the input value, in engineering units, corresponding to 0% of the full scale. This VI resizes the minimum (EGU) input array to match the size of the input (EGU) array.
% span returns the output value in percentage of full scale. This VI determines the length of the % span array from the size of the input (EGU) array.

PID EGU to Percentage Details

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:

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.

Example

Refer to the Manual-Automatic Control with Engineering Units VI in the labview\examples\control\PID directory for an example of using the PID EGU to Percentage VI.

 Open example  Find related examples