-
15
pages
-
English
-
Documents
Description
t-t Short Tutorial on Matlab(©2004, 2005 by Tomas Co)® Part 3. Simulink Basics1. A simple example.Suppose you want to model the response of a first order process model given by thefollowing equation:dT 1= (T T )indtT (0) = Towhere is the residence time parameter, T is the inlet temperature and T is theintemperature of the continuously stirred tank.Step 1. Activate SIMULINKIn the command line, type>> simulink ( Alternatively, you can use the Matlab launch pad and double click onSimulink icon. )The simulink library browser should pop out as shown in Figure 1.Step 2. Create a blank Simulink model window.On the Library Browser window double-click on the "Create Model" menubutton (as indicated in Figure 1.). Alternatively, you could also select from the[File] [New] [Model] submenu choice.A model window as shown in Figure 2 should now pop out. This is where wewill be adding our simulation blocks.Step 3. Import blocks from the Library Browser to the Model window.Going back to Figure 1, double-click on the "Math Operations" icon.The right-side of the Library browser should change. Scroll down until youfind the "Gain" block (as shown in Figure 3.)1Create ModelButtonMathOperationsIconFigure 1.Figure 2.2Gain BlockFigure 3.Now drag-drop the "Gain" block into the Model window.Back to the Library browser, on the right side, scroll down further until youfind the "Sum" block and then drag-drop this block into the Model window.You could ...
-
Publié par
-
Langue
English