Discussion:
rtw_continuous.h and rtw_solver.h not created
(too old to reply)
freccia
2009-11-26 14:45:19 UTC
Permalink
Hi folks,
I have a simulink model named "trial" and I used real time work shop into an executable file and I am working with Matlab 2007b. RTW created the following only the following header files:
"rtwtypes.h"
"rt_nonfinite.h"
"trial.h".

When I try to compile in C++ expresse 2008 all the file created by rtw an error occurs reporting that "rtw_continuous.h" and "rtw_solver.h" do not exist. In other word RTW does not create "rtw_continuous.h" and "rtw_solver.h" although I checked "continuous state" and "floating point values" in the interface panel.
What have I to do??
The beginning of the "trial.h" file is:

/*
* File: trial.h
*
* Real-Time Workshop code generated for Simulink model trial.
*
* Model version : 1.424
* Real-Time Workshop file version : 7.0 (R2007b) 02-Aug-2007
* Real-Time Workshop file generated on : Sun Nov 22 11:32:36 2009
* TLC version : 7.0 (Jul 26 2007)
* C source code generated on : Sun Nov 22 11:32:37 2009
*/

#ifndef RTW_HEADER_trial_h_
#define RTW_HEADER_trial_h_
#ifndef trial_COMMON_INCLUDES_
# define trial_COMMON_INCLUDES_
#include <stdlib.h>
#include <math.h>
#include <stddef.h>
#include <string.h>
#include "rtwtypes.h"
#include "rtw_continuous.h"
#include "rtw_solver.h"
#include "rt_nonfinite.h"
#endif /* trial_COMMON_INCLUDES_ */

#include "trial_types.h"

/* Macros for accessing real-time model data structure */
#ifndef rtmGetErrorStatus
......
......
......

Thanks
Arrow
Arnaud Miege
2009-11-27 11:44:12 UTC
Permalink
Post by freccia
Hi folks,
I have a simulink model named "trial" and I used real time work shop into
an executable file and I am working with Matlab 2007b. RTW created the
"rtwtypes.h"
"rt_nonfinite.h"
"trial.h".
When I try to compile in C++ expresse 2008 all the file created by rtw an
error occurs reporting that "rtw_continuous.h" and "rtw_solver.h" do not
exist. In other word RTW does not create "rtw_continuous.h" and
"rtw_solver.h" although I checked "continuous state" and "floating point
values" in the interface panel.
What have I to do??
<snip>
Post by freccia
Thanks
Arrow
Those files are located in <matlabroot>\simulink\include (e.g. on my machine
in C:\Program Files\MATLAB\R2009b\simulink\include). To make sure you have
all the files required, either use the Visual Studio project target from RTW
or the pack'n'go functionality:
* http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ug/f1116576.html
* http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ug/bqufw6y.html

HTH,

Arnaud

Loading...