How to show Matlab Simulink calculations in IBM Rational Rhapsody C++ Generated code?

8 views (last 30 days)
Hi,
I have a project on embedded system and should link some C++ codes...
I used Matlab Simulink to make my model:
* Make a PID model
* Generate RealTime C++ code
I did every way which exist on internet or IBM guidance PDF, such as these steps:
* File > Add Profile to Model > Simulink > Add "Simulink.sbs"
* Make a class and set it's stereotype to "SimulinkBlock in Simulink"
* Right click on my class > Imported/Sync Simulink Model > Fill "Simulink Model File" and "Simulink Generated Source Code (C++)"
* Add new Attributes for my simulink block and other classes (same name as ports)
* shift my simulink block and other classes to a composite class > Right click > "Make an object"
* Link my ports (from my simulink block to other classes)
* Components > DefaultComponent > Configuration > DefaultConfig > Initialization > Tick my "Composite Class's Name"
I use Visual Studio 2010 and have no problem for generating but when generate IBM C++ code, it is just some structure of my whole project and there is no code from my
Simulink model! i need my PID model and it's calculations in C++ code which generated from IBM.
any help will appreciate ;)

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!