Thread Subject: Real Time Workshop build error

Subject: Real Time Workshop build error

From: Matthew Wade

Date: 10 Jul, 2008 09:51:06

Message: 1 of 2

Hi,

I am a first time user of RTW and have got the basics - so
I think this problem relates to some other issue that I am
not aware of at this stage.

I have a model containing a single s-function (reactor) and
two inputs and two outputs (workspace).

(Normally the initiation file is run via an m-file and
simulation time is user defined from a GUI, but I
circumvented this for now).

So, I have followed the basic instructions for creating a
stand-alone version of the model.

!mkdir
Config. Paramters (fixed-step, Generic real time target) etc

I initiate the required input parameters by calling two
functions from the workspace and then begin the build.

Everything works fine until I get these error messages:

Error anaerobio_1R.c: .\anaerobio_1R.h: 775 syntax error;
found '.' expecting ';'

Error anaerobio_1R.c: .\anaerobio_1R.h: 775 syntax
skipping '.'

Error anaerobio_1R.c: .\anaerobio_1R.h: 775 syntax error;
found 'typedef' expecting ';'

Error anaerobio_1R.c: .\anaerobio_1R_private.h: 42
redeclaration of 'reactor' previously declared
at .\anaerobio_1R.h 775

gmake: *** [anaerobio_1R.obj] Error 0x1


I guess the error is something to do with the reactor.h
(header file) or reactor.c file.

I have tried using RTW with a simple model and it works
fine, but not for this.

Any ideas would be welcome

Cheers
Matt

Subject: Real Time Workshop build error

From: Matthew Wade

Date: 10 Jul, 2008 10:56:05

Message: 2 of 2

Addendum:

The guy who developed the model is in Spain and using a
slightly newer version of Simulink and RTW.

I asked him to try the compilation process with the model
and it worked fine with exactly the same settings.

Any thoughts on this - is it simply that I am using an
older version of simulink with a model developed in a newer
version - ps. the model runs fine in Simulink, but perhaps
its a problem with RTW?

Cheers
Matt

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
real time workshop Matthew Wade 10 Jul, 2008 05:55:11
error Matthew Wade 10 Jul, 2008 05:55:11
rssFeed for this Thread

Contact us at files@mathworks.com