Transfer Functions in Simulink, Part 1: Creating and Using Transfer Functions
This video demonstrates the ways in which transfer functions can be implemented in Simulink®. It outlines how to represent a complex system in terms of the transfer functions of its components. Simulate and analyze your systems by using different inputs and observing the output.
Published: 9 Jul 2015
In this two-part video we will show you how to design and analyze linear and nonlinear systems in Simulink using transfer functions.
Let's start by looking at different ways of modeling transfer functions in Simulink. For example, K over s plus K. You can bring in transfer function objects defined in the MATLAB workspace into Simulink by using the LTI System block and specifying the variable name.
A transfer function can also be represented in terms of simple blocks, such as integrators and gains, as shown. Alternatively, you can use the Transfer Function block Simulink provides. The block is defined in terms of the numerator and denominator of the transfer function.
We have covered designing the given actuator engine system in a video about representing transfer functions in MATLAB. Let's model the same system in Simulink.
Simulink allows you to easily represent complex systems visually, in terms of their components and connections. Here we represent the actuator and the engine using the transfer function block and connect them in series. We then create an area the two blocks to denote their relationship.
Simulink allows us to easily simulate a given system for a variety of inputs by simply adding the appropriate source to the input dominant. Here we specify a ramp input and attach a scope, and the system's output dominant.
Click the Play button to run the simulation and view the scope to see how the output and the ramp input change over time. Design the simulation with a different input; just change the input block. Let's see a step input with magnitude equal to 1. Click the Play button to see how the output changes.
Now let's add a controller to the system. Designing a controller for the system using MATLAB was covered in the video previously mentioned. For now, let's assume that the addition of an integrator with gain equal to 10 and a feedback loop gives us the performance characteristics we desire.
The controllers transfer function is implemented using the transfer function block, which is what we use to represent the engine and the actuator as well. We can see that the model is able to follow step inputs with some overshoot and zero steady-state error.
We can design controllers and perform other common tasks directly in Simulink using Simulink controller design.
In part two of this video, we will be focusing on obtaining transfer functions from Simulink models.
Featured Product
Control System Toolbox
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asie-Pacifique
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)