# Create Gain (P) (G Dataflow)

Returns proportional gains of a P controller.

## 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.

## 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

## proportional gain

Proportional gain of the controller.

This output can return a double-precision, floating-point number or an array of double-precision, floating-point numbers.

## Algorithm Definition

The following transfer function represents a P controller:

$C\left(s\right)={K}_{p}$

where Kp is the proportional gain.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application