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 can then specify their numerical values in the subsystem dialog box. Refer to the table for the dimensions needed to model the binary link frame tree.

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:   Pay close attention to Rigid Transform port orientation. Both base (B) port frames should connect to the Reference Frame port. This ensures the rigid transform applies to the Reference frame, and not the end frames.

  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. Select the Subsystem block and press Ctrl+M to create a subsystem mask.

  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 do this in 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?