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