LabVIEW Control Design and Simulation Module

CD Update MPC Window VI

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

CD Update MPC Window VI

Owning Palette: Predictive Control VIs

Requires: Control Design and Simulation Module

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

Example

CD Update MPC Window (Single)

Initialize specifies whether to reset the calculation of the setpoint or disturbance profile. If Initialize is TRUE and you do not specify an Initial Profile Window, this VI sets the setpoint or disturbance value to the Predicted Value(s) for a period of time equivalent to the Prediction Horizon. If Initialize is TRUE and you specify an Initial Profile Window, this VI specifies the Initial Profile Window as the profile of the signal from a time period equivalent to the Prediction Horizon prior to the current time.
Predicted Value specifies the setpoint or disturbance value at time k + Prediction Horizon.
Initial Profile Window specifies the profile of the signal for a time period equivalent to the Prediction Horizon prior to the current time. This VI uses the Initial Profile Window when Initialize is TRUE.
Prediction Horizon specifies the prediction horizon to use to calculate the window size of the signal profile.
Current Value returns the setpoint or disturbance value at time k.
Predicted Profile Window returns the window of the signal profile from time k to time k + Prediction Horizon.

CD Update MPC Window (Multiple)

Initialize specifies whether to reset the calculation of the setpoint or disturbance profile. If Initialize is TRUE and you do not specify an Initial Profile Window, this VI sets the setpoint or disturbance value to the Predicted Value(s) for a period of time equivalent to the Prediction Horizon. If Initialize is TRUE and you specify an Initial Profile Window, this VI specifies the Initial Profile Window as the profile of the signal from a time period equivalent to the Prediction Horizon prior to the current time.
Predicted Values specifies the interleaved values of the setpoint or disturbance profile at time k + Prediction Horizon.
Initial Profile Window specifies the profile of the signal for a time period equivalent to the Prediction Horizon prior to the current time. This VI uses the Initial Profile Window when Initialize is TRUE.
Prediction Horizon specifies the prediction horizon to use to calculate the window size of the signal profile.
Current Values returns the interleaved values of the setpoint or disturbance profile at time k.
Predicted Profile Window returns the window of the signal profile from time k to time k + Prediction Horizon.

Example

Refer to the CDEx Update MPC Controller VI in the labview\examples\Control and Simulation\Control Design\MPC directory for an example of using the CD Update MPC Window VI.

Log in to get a better experience