% 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 , initial
%        conditions ans simulation parameters
%
% 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
  H=156;

% Simulation Parameters
  tf=1;
