Aerospace Blockset Previous page   Next Page

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.

The following sections explain how to build a model on Windows and UNIX platforms.

Creating a Model on Windows Platforms

  1. Start Simulink.

  1. Click the button in the MATLAB toolbar or enter simulink at the MATLAB command line. The Simulink Library Browser appears.

  1. Open a new model.

  1. Select New -> Model from the File menu in the Library Browser. A new model window appears on your screen.

  1. Add a Sine Wave block to the model.
    1. Click Sources in the Library Browser to view the blocks in the Simulink Sources library.
    2. Drag the Sine Wave block from the Sources library into the new model window.

  2. Add a Second Order Linear Actuator block to the model.
    1. Click the  symbol next to Aerospace Blockset in the Library Browser to expand the hierarchical list of the aerospace blocks.
    2. In the expanded list, click Actuators to view the blocks in the Actuator library.
    3. Drag the Second Order Linear Actuator block into the model window.

  3. Add a Mux block to the model.
    1. Click Signal Routing in the Library Browser to view the blocks in the Simulink Signals & Systems library.
    2. Drag the Mux block from the Signal Routing library into the model window.

  4. Add a Scope block to the model.
    1. Click Sinks in the Library Browser to view the blocks in the Simulink Sinks library.
    2. Drag the Scope block from the Sinks library into the model window.

  5. Resize the Mux block in the model.
    1. Click the Mux block to select the block.
    2. Hold down the mouse button and drag a corner of the Mux block to change the size of the block.

  6. Connect the blocks.
    1. 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.
    2. Using the same technique, connect the output of the Second Order Linear Actuator block to the second input port of the Mux block.
    3. Using the same technique, connect the output of the Mux block to the input port of the Scope block.
    4. 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.

  7. Set the block parameters.
    1. Double-click the Sine Wave block. The dialog box that appears allows you to set the block's parameters.

    1. Click OK.

    2. Double-click the Second Order Linear Actuator block.

    1. 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.

  1. Start Simulink.

  1. Enter simulink at the MATLAB command line. The Simulink Library window appears.

  1. Open a new model.

  1. Select New -> Model from the File menu in the Simulink Library window. A new model window appears on your screen.

  1. Add a Sine Wave block to the model.
    1. Double-click Sources in the Simulink Library window to view the blocks in the Simulink Sources library.
    2. Drag the Sine Wave block from the Sources library into the new model window.

  2. Add a Second Order Linear Actuator block to the model.
    1. Double-click Aerospace Blockset in the Simulink Library browser. This opens the Aerospace Blockset block libraries.
    2. In the Aerospace Blockset block libraries, click Actuators to view the blocks in the Actuator library.
    3. Drag the Second Order Linear Actuator block into the model window.

  3. Add a Mux block to the model.
    1. Double-click Signal Routing in the Simulink Library to view the Signal Routing blocks.
    2. Drag the Mux block from the Signal Routing library into the model window.

  4. Add a Scope block to the model.
    1. Double-click Sinks in the Simulink Library window to view the blocks in the Simulink Sinks library.
    2. Drag the Scope block from the Sinks library into the model window.

  5. Resize the Mux block in the model.
    1. Click the Mux block to select the block.
    2. Hold down the mouse button and drag a corner of the Mux block to change the size of the block.

  6. Connect the blocks.
    1. 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.
    2. Using the same technique, connect the output of the Second Order Linear Actuator block to the second input port of the Mux block.
    3. Using the same technique, connect the output of the Mux block to the input port of the Scope block.
    4. 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.

  7. Set the block parameters.
    1. Double-click the Sine Wave block. The dialog box that appears allows you to set the block's parameters.

    1. Click OK.

    2. Double-click the Second Order Linear Actuator block.

    1. Click OK.


Previous page  Creating Aerospace Models Running the Simulation Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2010 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS