| Aerospace Blockset |
 |
Building a Simple Actuator System
In this tutorial, you drag, drop, and configure a few basic blocks to drive, simulate, and measure an actuator. The tutorial guides you through these aspects of model-building:
At the end of the tutorial, you will have constructed a simple actuator model that measures the actuator's position in relation to a sine wave.
Building the Model
Simulink is a software environment for modeling, simulating, and analyzing dynamic systems. Try building a simple model that drives an actuator with a sine wave and displays the actuator's position superimposed on the sine wave.
Note
If you prefer to open the complete model shown below instead of building it, enter aeroblktutorial at the MATLAB command line.
|

The following sections explain how to build a model on Windows and UNIX platforms.
Creating a Model on Windows Platforms
- Start Simulink.
- Click the
button in the MATLAB toolbar or enter simulink at the MATLAB command line. The Simulink Library Browser appears.

- Open a new model.
- Select New -> Model from the File menu in the Library Browser. A new model window appears on your screen.
- Add a Sine Wave block to the model.
- Click Sources in the Library Browser to view the blocks in the Simulink
Sources library.
- Drag the Sine Wave block from the Sources library into the new model
window.
- Add a Second Order Linear Actuator block to the model.
- Click the
symbol next to Aerospace Blockset in the Library Browser
to expand the hierarchical list of the aerospace blocks.
- In the expanded list, click Actuators to view the blocks in the Actuator
library.
- Drag the Second Order Linear Actuator block into the model window.
- Add a Mux block to the model.
- Click Signal Routing in the Library Browser to view the blocks in the
Simulink Signals & Systems library.
- Drag the Mux block from the Signal Routing library into the model
window.
- Add a Scope block to the model.
- Click Sinks in the Library Browser to view the blocks in the Simulink
Sinks library.
- Drag the Scope block from the Sinks library into the model window.
- Resize the Mux block in the model.
- Click the Mux block to select the block.
- Hold down the mouse button and drag a corner of the Mux block to
change the size of the block.
- Connect the blocks.
- Position the pointer near the output port of the Sine Wave block. Hold
down the mouse button and drag the line that appears until it touches the
input port of the Second Order Linear Actuator block. Release the mouse
button.
- Using the same technique, connect the output of the Second Order Linear
Actuator block to the second input port of the Mux block.
- Using the same technique, connect the output of the Mux block to the
input port of the Scope block.
- Position the pointer near the first input port of the Mux block. Hold down
the mouse button and drag the line that appears over the line from the
output port of the Sine Wave block until double crosshairs appear.
Release the mouse button. The lines are connected when a knot is present
at their intersection.
- Set the block parameters.
- Double-click the Sine Wave block. The dialog box that appears allows you
to set the block's parameters.
- Click OK.

- Double-click the Second Order Linear Actuator block.
-
In this example, the actuator has the default natural frequency of 150 rad/sec, a damping ratio of 0.7, and an initial position of 0 radians specified by the Natural frequency, Damping ratio, and Initial position parameters.
- Click OK.

Creating a Model on UNIX Platforms
For the "Creating a Model on UNIX Platforms" section, the screenshots were taken from an X Windows client in Microsoft Windows.
- Start Simulink.
- Enter
simulink at the MATLAB command line. The Simulink Library window appears.

- Open a new model.
- Select New -> Model from the File menu in the Simulink Library window. A new model window appears on your screen.
- Add a Sine Wave block to the model.
- Double-click Sources in the Simulink Library window to view the blocks
in the Simulink Sources library.
- Drag the Sine Wave block from the Sources library into the new model
window.
- Add a Second Order Linear Actuator block to the model.
- Double-click Aerospace Blockset in the Simulink Library browser. This
opens the Aerospace Blockset block libraries.
- In the Aerospace Blockset block libraries, click Actuators to view the
blocks in the Actuator library.
- Drag the Second Order Linear Actuator block into the model window.
- Add a Mux block to the model.
- Double-click Signal Routing in the Simulink Library to view the Signal
Routing blocks.
- Drag the Mux block from the Signal Routing library into the model
window.
- Add a Scope block to the model.
- Double-click Sinks in the Simulink Library window to view the blocks in
the Simulink Sinks library.
- Drag the Scope block from the Sinks library into the model window.
- Resize the Mux block in the model.
- Click the Mux block to select the block.
- Hold down the mouse button and drag a corner of the Mux block to
change the size of the block.
- Connect the blocks.
- Position the pointer near the output port of the Sine Wave block. Hold
down the mouse button and drag the line that appears until it touches the
input port of the Second Order Linear Actuator block. Release the mouse
button.
- Using the same technique, connect the output of the Second Order Linear
Actuator block to the second input port of the Mux block.
- Using the same technique, connect the output of the Mux block to the
input port of the Scope block.
- Position the pointer near the first input port of the Mux block. Hold down
the mouse button and drag the line that appears over the line from the
output port of the Sine Wave block until double crosshairs appear.
Release the mouse button. The lines are connected when a knot is present
at their intersection.
- Set the block parameters.
- Double-click the Sine Wave block. The dialog box that appears allows you
to set the block's parameters.
- Click OK.

- Double-click the Second Order Linear Actuator block.
-
For this example, the actuator has the default natural frequency of 150 rad/sec, a damping ratio of 0.7, and an initial position of 0 radians specified by the Natural frequency, Damping ratio, and Initial position parameters.
- Click OK.

| Creating Aerospace Models | | Running the Simulation |  |
Learn more about the latest releases of MathWorks products:
|