Manually importing MathWorks Simulink models

You can use the Simulink Manual Importer to manually import MathWorks Simulink models to the IBM® Rational® Rhapsody® Design Management Server.
Note: To use the Rational Rhapsody Design Manager Import Engine to schedule the automatic importing of Simulink models, see the related topic on importing Simulink models to the Rational Rhapsody Design Management Server.

Configuration

Before you begin

You will need to install the Mathlab application before configuration. Installing Mathlab to import MathWorks Simulink models

Procedure

This procedure needs to be done only once. This procedure sets up the MathWorks Simulink application to realize the Simulink Manual Importer add-on.

  1. After installing Simulink Manual Importer, open MathWorks Simulink and select File > Set Path.

    For information on how to install the Simulink Manual Importer, see the related topic on installing the Rational Rhapsody Design Manager Client Extension.

  2. On the Set Path window, click Add Folder, browse to where you installed Simulink Manual Importer, select the mscripts folder (for example: C:\Program Files\IBM\Rational\Rhapsody\SimulinkManualImporter301\mscripts), and click OK.
  3. In the Set Path window, click Save.

Export models to the Rational Rhapsody Design Management Server

Before you begin

Before you can export MathWorks Simulink models to the Rational Rhapsody Design Management Server, you must configure the server with the Simulink Integration. The server machine might be installed on a computer other than where you might be located.

In addition, verify that your project area is actively managed on the Rational Rhapsody Design Management Server, and add the Simulink domain to the project (project properties).

Procedure

  1. Open a Simulink model (.slx or .mdl) file.
  2. From the Tools menu, expand the Rhapsody Design Manager section and click Publish model or Move to Design Manager.
  3. In the dialog window, type the URI, the Connect field, Project Area field, and Workspace field and click OK.

Publish a Simulink Library using Matlab 2012b or higher

Procedure

  1. Open Matlab, and click the Apps page.
  2. Click on the Design Manager application.
  3. In the dialog window, click Publish to Design Manager or Move to Design Manager.
  4. Type the location of the Simulink model and the Simulink Library location of the 'slblocks.m' file associated with the library. After the Model/Library is opened, the connection to Design Manager dialog will open.
  5. In the dialog window, type the URI, the Connect field, Project Area field, and Workspace field and click OK.

Feedback