Course Name:
Control System
Submitted by:
                     FARRUKH MEHMOOD (2022-EE-018)
Submitted to:
                    Dr. Habib Wajid
Section :
A
                                                     Lab # 9
                                        Simulink Modelling
Objective
The objective of this lab is to introduce the concepts of system modelling in Simulink.
Reference Material
    1- Modern Control Engineering (5th Edition) by Katsuhiko Ogata.
    2- Feedback Control of Dynamic Systems (8th Edition/Global Edition) by Gene F. Franklin, J. David Powell and
       Abbas Emami-Naeini.
Resources Required
MATLAB Version 2019 and above.
Task 1: Train System
    1- Code
            clc;
            clear;
            M1 = 1;
            M2 = 0.5;
            k = 1;
            F = 1;
            mu = 0.02;
            g = 9.8;
2- Simulink Model
3- Result
Task 2: Cruise Control
   1- Code
               clc;
               clear;
               m = 1000;
               b = 50;
               u = 500;
   2- Simulink Model
   3- Result
Task 3: DC Motor Speed
  1- Code
            J = 0.01;
            b = 0.1;
            Ke = 0.01;
            Kt = 0.01;
            R = 1;
            L = 0.5;
   2- Simulink Model
Task 4: DC Motor Position
   1- Code
             R = 4;
            L   = 2.75E-6;
            K   = 0.0274;
            J   = 3.2284E-6;
            b   = 3.5077E-6;
            A   = [0 1 0
            0   -b/J K/J
            0   -K/L -R/L];
            B   = [0 ; 0 ; 1/L];
            C   = [1 0 0];
            D   = 0;
   2- Simulink Model
Task 5: Suspension
1- Code
            m1   =   2500;
            m2   =   320;
            k1   =   80000;
            k2   =   500000;
            b1   =   350;
            b2   =   15020;
2- Result