Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

PID % to EGU VI

LabVIEW 8.6 PID Control Toolkit Help
June 2008

NI Part Number:
370401E-01

»View Product Info

Owning Palette: PID VIs

Installed With: PID Control Toolkit

Converts a percent-of-range input to an engineering-units output based on the minimum and maximum range settings. The output is normally limited to the range [max...min]. Values outside of the range [max..min] are allowed when coerce output to range? is FALSE. 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.

PID % to EGU (DBL)

coerce output to range? specifies whether to coerce the output to the specified range when % span is greater than 100% or less than 0%.
maximum (EGU) specifies the input value, in engineering units, corresponding to 100% of the full scale.
% span specifies the input value in percentage of full scale.
minimum (EGU) specifies the input value, in engineering units, corresponding to 0% of the full scale.
output (EGU) returns the output value in engineering units.

PID % to EGU (DBL Array)

coerce output to range? specifies whether to coerce the output to the specified range when % span is greater than 100% or less than 0%.
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.
% span specifies the input value in percentage of full scale.
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 % span input array.
output (EGU) returns the output value in engineering units. This VI determines the length of the output (EGU) array from the size of the % span input array.

PID % to EGU Details

The DBL Array instance of this polymorphic VI can be used in multi-loop PID control applications. In this case, the length of the primary input array determines the length of the output array. Other input arrays do not necessarily need to be the same length as the primary input array. This VI resizes other input arrays to the same length as the primary input array as follows:

  • If the input array is longer than the primary input array, the input array is truncated to the length of the primary input array. Additional values in the array are not used.
  • If the input array is shorter than the primary input array, the last value of the input array is repeated until the size matches that of the primary input array.

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\prctrlex.llb for an example of using the PID % to EGU VI.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit