Represent Binary Link Frame Tree

Model Overview

In this example, you model the frame tree of a binary link. This tree contains three frames to which you later connect solid elements. You specify these frames using the Rigid Transform block.

You can promote subsystem reusability by parameterizing link dimensions in terms of MATLAB® variables. In this example, you initialize the variables in a subsystem mask. You then specify their numerical values in the subsystem dialog box. The table shows the variables used in this example.

DimensionMATLAB Variable
Width W

Build Model

  1. Drag these blocks into a new model.

    Rigid Transform2Frames and Transforms
    Solver Configuration1Simscape™ Utilities

  2. Connect and name the blocks as shown in the figure.

      Note:   You must connect the frame ports exactly as shown in the figure. Ensure the base frame ports connect directly to each other. If they do not, the frames created will differ from this example.

  3. In the Rigid Transform block dialog box, specify these parameters.

    Translation > MethodSelect Standard Axis.
    Translation > AxisSelect -X.
    Translation > OffsetEnter L/2. Select units of cm.

  4. In the Rigid Transform1 block dialog box, specify these parameters.

    Translation > MethodSelect Cartesian.
    Translation > OffsetEnter [L/2 0 3/2*T]. Select units of cm.

Generate Binary Link Subsystem

To initialize the MATLAB dimension variables used to specify the frame transforms, convert the binary link block diagram into a subsystem and use the subsystem mask:

  1. Select all the blocks excluding Solver Configuration.

  2. Generate a new subsystem, e.g., by pressing Ctrl+G.

  3. Create a subsystem mask, e.g., by selecting the Subsystem block and pressing Ctrl+M.

  4. In the Parameters & Dialog tab, add three Edit fields to the Parameters folder. Then, specify the following parameters and click OK.


  5. In the Subsystem dialog box, specify these parameters.


Visualize Model

Update the block diagram. You can perform this task from the Simulink® Editor menu bar, by selecting Simulation > Update Diagram. Then, in the Mechanics Explorer menu bar, select View > Show Frames. The visualization pane shows the binary link frame tree.

Open Reference Model

To see a completed version of the frame tree model, at the MATLAB command prompt enter smdoc_binary_link_frames.

Related Examples

Was this topic helpful?