# Create Gain (PI » Academic) (G Dataflow)

Returns PI gains of a PI controller in the Academic form.  ## integral unit

Unit associated with the integral gain.

This input accepts a ring or an array of rings.

Name Value Description
Hz 0 Specifies that the integral gain is expressed in Hz.
s 1 Specifies that the integral gain is expressed in seconds.
min 2 Specifies that the integral gain is expressed in minutes.

Default: The default value of this input changes depending on the data type you wire. If you wire a ring to this input, the default is s. If you wire an array of rings to this input, the default is Hz. ## proportional unit

Unit associated with the proportional gain.

The relationship between the available units is K = 100/PB.

This input accepts a ring or an array of rings.

Name Value Description
Gain (K) 0 Specifies that the proportional gain is expressed in terms of proportional gain (K).
Band (PB) 1 Specifies that the proportional gain is expressed in terms of proportional band (PB).

Default: Gain (K) ## proportional

Value of the proportional component of the controller.

This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers. ## integral

Value of the integral component of the controller.

This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers. ## action

Action of the controller.

This input accepts a ring or an array of rings.

Name Value Description
Reverse 0 The controller is reverse-acting.
Direct 1 The controller is direct-acting.

Default: Reverse ## PI gains

Proportional gain and integral gain parameters of the controller.

This output can return a cluster or an array of clusters. ### proportional

Proportional gain of the controller. ### integral

Integral gain of the controller.

## Algorithm Definition

The following transfer function represents a PI controller in the Academic form:

${C}_{i}\left(s\right)={K}_{c}\left(1+\frac{1}{{T}_{i}s}\right)$

where Kc is the proportional gain and Ti is the integral time constant.

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices