LabVIEW Control Design and Simulation Module

Predictive Control VIs

  • Updated2023-03-14
  • 2 minute(s) read

Owning Palette: Control Design VIs and Functions

Requires: Control Design and Simulation Module. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Predictive Control VIs to construct and implement a predictive controller model for a state-space plant.
Note  Refer to Chapter 18, Creating and Implementing a Model Predictive Controller, of the LabVIEW Control Design User Manual for information about using these VIs.
Palette ObjectDescription
CD Create MPC ControllerCreates a model predictive control (MPC) controller for a state-space model. You must manually select the polymorphic instance to use.
CD Create MPC FIFOCreates a queue or real-time (RT) FIFO for an MPC controller. You use this queue or RT FIFO to update setpoint and/or disturbance profiles dynamically.
CD Delete MPC FIFODeletes the MPC FIFO. After you delete this FIFO, the CD Write MPC FIFO VI stops writing data to the FIFO and the loop that contains this VI terminates.
CD Implement MPC ControllerCalculates the Control Action u(k) to apply to the plant. This VI uses the Output Reference Window, Disturbance Window, and Control Action Reference Window parameters to calculate the control action along the control horizon at time k. You must manually select the polymorphic instance you want to use.
CD Read MPC FIFOReads a portion, or window, of profile values from the MPC FIFO.
CD Set MPC ControllerUpdates specified parameters of a model predictive control (MPC) controller for a state-space model. You must manually select the polymorphic instance to use.
CD Step Forward MPC WindowCalculates the appropriate portion, or window, of the setpoint and/or disturbance profiles. You wire these windows to the appropriate input(s) of the CD Implement MPC Controller VI.

The CD Step Forward MPC Window VI also moves the control and prediction horizons forward.
CD Update MPC WindowCalculates the appropriate portion, or window, of the setpoint or disturbance profile of a signal from time k to time k + Prediction Horizon. You wire these windows to the appropriate input(s) of the CD Implement MPC Controller VI. You must manually select the polymorphic instance you want to use.
CD Write MPC FIFOWrites a control action setpoint, output setpoint, or disturbance profile window to the MPC FIFO. You then use the CD Read MPC FIFO VI to read values from this MPC FIFO.

Log in to get a better experience