Table Of Contents

Gain Schedule (G Dataflow)

Version:
Last Modified: August 28, 2017

Selects a set of gains from a gain schedule.

Programming Patterns

You can call the Create Gain Schedule node to obtain the gain schedule for a controller before using this node.

connector_pane_image
datatype_icon

gain scheduling value

Current input value to use to select gains from the gain schedule.

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

datatype_icon

gain schedule

Gain values for the control parameters and maximum value of the gain scheduling values.

This node uses the first set of gain values for all the gain scheduling values less than the corresponding maximum value.

datatype_icon

gain

Proportional gain, integral gain, derivative gain, or filter coefficient parameter of the controller.

This input accepts a double-precision, floating-point number or a cluster. The data type and cluster elements change according to the controller type. This node supports the following controller types:

  • P (Proportional)
  • PI (Proportional-Integral)
  • PD (Proportional-Derivative)
  • PID (Proportional-Integral-Derivative)
datatype_icon

maximum

Maximum value of the range of the gain scheduling values.

datatype_icon

gains out

Current gains from the gain schedule.

This output can return the following data types:

  • Double-precision, floating-point number
  • Array of double-precision, floating-point numbers
  • Cluster
  • Array of clusters

The data type and cluster elements change according to the controller type. This node supports the following controller types:

  • P (Proportional)
  • PI (Proportional-Integral)
  • PD (Proportional-Derivative)
  • PID (Proportional-Integral-Derivative)
datatype_icon

index

Index of the element in the gain schedule corresponding to gains out.

This output can return a 32-bit signed integer or an array of 32-bit signed integers.

Cluster Elements for Different Controller Types

The following table shows the elements the input and output gain clusters contain for different controller types.

Controller Type Gain Cluster Elements
P proportional gain
PD proportional gain, derivative gain, and derivative lowpass filter coefficient
PI proportional gain and integral gain
PID proportional gain, integral gain, derivative gain, and derivative lowpass filter coefficient

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices

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


Recently Viewed Topics