Using Simulink    

Moving Blocks in a Model

To move a single block from one place to another in a model window, drag the block to a new location. Simulink automatically repositions lines connected to the moved block.

To move more than one block, including connecting lines:

  1. Select the blocks and lines. If you need information about how to select more than one block, see Selecting More than One Object.
  2. Drag the objects to their new location and release the mouse button.

Copying Blocks in a Model

You can copy blocks in a model as follows. While holding down the Ctrl key, select the block with the left mouse button, then drag it to a new location. You can also do this by dragging the block using the right mouse button. Duplicated blocks have the same parameter values as the original blocks. Sequence numbers are added to the new block names.

Block Parameters

All Simulink blocks have a common set of parameters, called block properties, that you can set (see Common Block Parameters). See Block Properties Dialog Box for information on setting block properties. In addition, many blocks have one or more block-specific parameters that you can set (see Block-Specific Parameters). By setting these parameters, you can customize the behavior of the block to meet the specific requirements of your model.

Setting Block-Specific Parameters

Every block that has block-specific parameters has a dialog box that you can use to view and set the parameters. You can display this dialog by selecting the block in the model window and choosing BLOCK Parameters from the model window's Edit menu or from the model window's context (right-click) menu, where BLOCK is the name of the block you selected, e.g., Constant Parameters. You can also display a block's parameter dialog box by double-clicking its icon in the model or library window.

For information on the parameter dialog of a specific block, see the block's documentation in Chapter 9, Block Reference.

You can set any block parameter, using the Simulink set_param command. See set_param for details.

You can use any MATLAB constant, variable, or expression that evaluates to an acceptable result when specifying the value of a parameter in a block parameter dialog or a set_param command. You can also use variables or expressions that evaluate to Simulink data objects as parameters (see Using Data Objects as Parameters).


 Copying and Moving Blocks from One Window to Another Block Properties Dialog Box