O'Reilly logo

Process Control: Modeling, Design, and Simulation by B. Wayne Bequette

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

M3.4. SIMULINK sfun (.mdl Files)—Advanced

The previous example of the use of SIMULINK and S-functions was quite limited. In the example, process parameters were imbedded in the S-function (.m file). Parameters can be passed through argument lists, so that the same files can be used for many different systems by simply changing parameter values. Some more advanced features are illustrated in the example below.

Example M3.3: Van de Vusse Reactor Extended

The SIMULINK diagram shown in Example M3.2 (Figure M3-2) merely re-created the same simulation (perturbation of initial conditions from steady state) as the MATLAB ode file from Example M3.1. A real power of SIMULINK is to create complex block diagrams with additional lags on sensors and actuators ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required