Products & Services Solutions Academia Support User Community Company

Compatibility Between SystemBuild and Simulink Software

Introduction

SB2SL performs a block-by-block translation of the SystemBuild model. For SystemBuild blocks for which a clear Simulink equivalent exists, SB2SL places the equivalent built-in Simulink block into the resulting Simulink model. The Gain block is an example in which there is a clear equivalent between SystemBuild and Simulink blocks.

Other SystemBuild blocks have no clear Simulink equivalents. However, through the use of Simulink masking and library features, equivalent implementations of these blocks have been created and are in a Simulink library called libsb2sl.mdl.

An example of this type of block is the Ramp block in the SystemBuild SNG library. This block supports limits on the output and a relative start time for the ramp. The standard Simulink Ramp block does not inherently support these features. SB2SL translates this block into a masked subsystem that includes a collection of existing Simulink blocks. This masked subsystem behaves the same as the SystemBuild Ramp block.

SB2SL Simulink Library

You can find all of the masked blocks generated by SB2SL that are not in any of the other Simulink libraries in the library libsb2sl.mdl. This library is provided as part of the Simulink environment. (You need to download and install the SB2SL software only if you want to use the SB2SL tool to convert SystemBuild models.) You can open the library at the MATLAB command line by typing:

libsb2sl

After SB2SL translation, some blocks that appear in the resulting Simulink model may be from this library.

Open any mask of the Simulink blocks in this library to see the exact implementation of each SystemBuild equivalent used by SB2SL. For example, the Simulink equivalent to the SystemBuild Ramp block is in

libsb2sl/SGN/LimRamp

For these blocks:

1VarPoly
ConditionBlock
DAxisRotation
Decoder
Encoder
IAxisRotation
LogExpression
ZILogExpression
General
General0

the following equivalents are enabled:

Using Real-Time Workshop Software with Converted SB2SL Models

You can use the Real-Time Workshop software to generate code for models you have converted from the SystemBuild to the Simulink environment (using SB2SL). Code is generated for most translated blocks in the model. Code generation is also supported for converted models that contain noninlined BlockScript blocks.

The blocks that do not support code generation through the Real-Time Workshop software are:

Referenced Models in Normal Mode with Converted SB2SL Models

You can use converted SB2SL models in referenced models and execute those models in Simulink Normal mode. Normal mode is one of two modes in which Simulink software can execute a referenced model. See Referenced Model Simulation Modes in Simulink User's Guide for further details.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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