Clear Filters
Clear Filters

How to get closed loop frequency response when MPC as a feedforward controller?

3 views (last 30 days)
Hello everyone,
I want to draw bode plot of my control loop, I would like to do first simulation on simulink and then acquire in real time. I need guidance. My loop look like

Answers (1)

MULI
MULI on 20 Sep 2024
Hi Ayesha,
I understand that you need to perform Bode plot analysis for a plant model with Proportional-Integral (PI) control and Model Predictive Control (MPC).
You can follow the steps below to simulate the system and acquire the Bode plot in real time.
Simulink Simulation Steps:
  • Define Each Part of the System like PI Controller, MPC Controller, Plant (either transfer function or state space representation), Sensor.
  • Build the Control System in Simulink using these blocks and make sure the feedback loops are correctly implemented.
  • Use Linear Analysis Tool in Simulink to generate bode plot for system.
You can refer to these MathWorks documentation links for more information on linearizing the model and obtaining the bode plots.
Real-Time Data Acquisition:
  • Connect the real time hardware like "dSPACE" to your actual plant.
  • Inject sine waves at different frequencies and measure how the system responds.
  • Record the gain and phase at each frequency to create a real-time Bode plot.
You can also refer the below File exchange link that helps in designing an MPC controller:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!