Communications Blockset    

Building the Model

This section helps you build the model starting from a blank model window. If you prefer to open the prebuilt model, then type commblksgettingstarted at the MATLAB prompt and skip ahead to Exploring the Model.

Part 1: Placing the First Block

To start building the model, follow these steps:

  1. Type commlib at the MATLAB prompt. This opens the Communications Blockset main library.
  2. From the library's File menu, select New and then select Model. This opens a new model window called untitled. You will build the example model in this window.
  3. From the model window's File menu, select Save. Choose an appropriate location and filename for the model you are about to build. You should save the model frequently while you are editing it, to avoid losing any work.
  4. In the Communications Blockset main library, double-click on the Comm Sources icon. This opens the Comm Sources library.
  5. In the Comm Sources library, find the icon for the Bernoulli Random Binary Generator block. Drag it into the model window.
  6. In the model window (not the Comm Sources library window), double-click on the Bernoulli Random Binary Generator icon. This opens the block's parameter dialog box, also called its mask.
  7. In the mask, type new values in the parameter fields to change the default parameter values to the ones shown in the right image below.

  8. Click on the OK button in the mask.

You have now placed and configured the first block for this example model.

Part 2: Placing Other Blocks

This section tells how to find and configure the other blocks required for the example model. First open the main libraries of the products that contain those blocks:

Now, the basic procedure for placing blocks is similar to the procedure you used for the Bernoulli Random Binary Generator block:

  1. From the product's main library, navigate to the library or sublibrary where the block resides.
  2. Drag the desired block into the model window.
  3. Double-click on the block in the model window to open its mask.
  4. Change the appropriate parameters.
  5. Click on the mask's OK button.

Apply this basic procedure to the blocks listed below. For now, just place each block anywhere within your model window. The next section gives tips for connecting the blocks to each other.

Below are the blocks that you should gather and configure in your model window. Each bullet lists the name and library location of the block, while each subbullet indicates how to change the parameters from their default values.

From the Communications Blockset Library.   

From the DSP Blockset Library.   

From the Simulink Library.   

Connecting the Blocks

Once you have all the blocks in your model window, you can connect them so that your model window looks like Example Model (except for the Info block that appears in that figure). Also, from the model window's Simulation menu, choose Simulation parameters; then in the Simulation Parameters dialog box, set Stop time to inf.

Here are some tips for connecting blocks:

Additional information about modelbuilding is in the section, "Creating a Model," in the Using Simulink guide.


 Overview of the Simulation Exploring the Model