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 Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg22009926