From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Model Predictive Control (MPC) output lag when Prediction Horizon increases

Hi, 

 

I programmed a simple MPC example using a model that I obtained via system ID. Eventually, this program will be deployed into CompactRio to perform a real time control. However, when I increase my Np, the output will start lagging. 

 

I am confused why this is happening,

 

My program: I am trying to run a Smith predictor architecture using MPC controller instead of PID. Thus there is an additional model running parallel with the the actual plant. At this point, since it is in simulation, both models are assumed to be the same.  

 

Version: LabView 2009 SP1 

 

Please advice 

 

Thank you 

 

CW

 

0 Kudos
Message 1 of 4
(2,955 Views)

Hi, 

 

Would it be possible to be more clear on the lagging behavior that you are seeing in the system? What magnitude of Np are you increasing to where this behavior becomes apparent? Is/Are there a specific function that is taking significantly longer to execute given a large enough Np? 

 

I appreciate your time, and look forward to your follow up.

 

Cheers, 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 2 of 4
(2,936 Views)

You may also want to read through the example outlined in the Control Design Manual:

 

 

LabVIEW Control Design User Manual

 

LabVIEW Control Design User Manual

http://digital.ni.com/manuals.nsf/websearch/73D787E59721B3FE862575BA006E6FA8

 

Particularly Chapter 18 has a discussion of the control affect of Np in the MPC system.

 

 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 3 of 4
(2,916 Views)

you need to change the discretization time (sampling time to 100 ms)

 

0 Kudos
Message 4 of 4
(2,185 Views)