Topic
No replies
SystemAdmin
SystemAdmin
1305 Posts
ACCEPTED ANSWER

Pinned topic Integrating Simulink block with in/outputs in Rational Rhapsody

‏2013-01-15T15:17:50Z |
Hi all,

I am trying to integrate a simulink block into Rational Rhapsody. In the IBM help the default settings for generating code which should be integrated in Rational Rhapsody are:

Hardware Implementation->Device Type - Unspecified (assume 32-bit Generic)
Real-Time Workshop->System target file - ert.tlc
Real-Time Workshop->Language - C++
Real-Time Workshop->Make command - make_rtw
Real-Time Workshop->Template makefile - ert_default_tmf
Real-Time Workshop->Data Import/Export -> Format - Array

Since the simulink block I am using has Real Time Ports to a system, I had to change the settings. The right settings for this application seem to be as described in
http://www.mathworks.de/support/solutions/en/data/1-AY3NHN/index.html?product=RT&solution=1-AY3NHN
But the only settings that worked for building the simulink model and creating code were:

Hardware Implementation->Device Type - Unspecified (assume 32-bit Generic)
Real-Time Workshop->System target file - rtwinert.tlc
Real-Time Workshop->Language - C++
Real-Time Workshop->Make command - make_rtw
Real-Time Workshop->Template makefile - rtwinert.tmf
Real-Time Workshop->Data Import/Export -> Format - Structure with time

When building the Rational Rhapsody model, the following errors occur:
MATLAB\R2011a\simulink\include\simstruc.h(277) : fatal error C1189: #error : Unrecognized use (This error is part of the header simstruc.h which is adressed during the build process)
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 10.0\VC\BIN\cl.EXE"' : return code '0x2'

Has someone an idea what the solution for this problem could be?

Regards,
Tim