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

2 次查看(过去 30 天)
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

回答(1 个)

MULI
MULI 2024-9-20
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:

类别

Help CenterFile Exchange 中查找有关 Linear Plant Specification 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by