% magdat % This file is called from the SIMULINK block diagram for the % Magnetic Suspension System. It initialized the variables % corresponding to the parameters of the plant and initial % conditions % % Last Rev.: 9/9/96, 4,21,98, JCCK % Magnet and Load g = 9.81; % [m/s^2] gravitational constant Re = 31.1; % electromagnet resistance [Ohms] Le = 0.1097; % electromagnet inductance [H] Ke = 6.59E-4; % electromagnet constant [Nm^2/A^2] m = 0.01058; % susp. object mass [Kg] % Initial Conditions Xo= 0.010; % initial position Vo= 0; % initial velocity Io= Xo*sqrt(m*g/Ke) ; % initial current Eo= Re*Io; % driving voltage % Sensor Gain beta=156; % For linear simulation only % State Space Matrices A = [-Re/Le 0 0; 0 0 1; -(2/Xo)*sqrt(g*Ke/m) 2*g/Xo 0]; B = [ 0 0 1/m; 1/Le 0 0]'; C = [ 0 1 0]; D = [0 0];