IBM Support

Using Imported Types when importing a Simulink model into IBM Rational Rhapsody

Troubleshooting


Problem

Using Imported Types when importing a Simulink model into IBM Rational Rhapsody

Symptom

Importing a Simulink model into Rhapsody results in this info message appearing


Subsequent attempts to compile the Rhapsody model result in a failure to resolve types defined in and imported from your Simulink model.

Cause

The required source header file(s) are not present in the Rhapsody model

Resolving The Problem

1) Consult the compiler error message in the Rhapsody output window to identify the name of the type that is missing.

2) Locate the source file that contains the missing type. This should be located in the same directory as your Simulink .slx model.

For example, if your model is located at C:\SimulinkTest\SimulinkTestModel.slx, then your source file is probably located in C:\SimulinkTest\SimulinkTestModel_ert_rtw and named SimulinkTestModel_types.h

3) Add the name of the source file header to the CPP_CG.Package.SpecIncludes property of the ImportedSimulinkType package.


[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1;8.1.1;8.1.2;8.1.2.1;8.1.3;8.1.4;8.1.5;8.2;8.2.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg22009926