Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

EXECUTABLE SIMULINK MODEL RTW

35 views
Skip to first unread message

Alex

unread,
Jul 19, 2005, 7:22:11 PM7/19/05
to
Hi,(sorry my english isn´t very good) I create a Simulink Model
(Analog Input (with the PCL-711b board) + a Scope block). I compile
with this parameters(REAL TIME WORKSHOP):
Category: Target configuration
System target file: rtwin.tlc
Template makefile: rtwintmf
Make command: make_rtw

The compiler is the Microsoft Visual c++ 6.0
After the compilation, create a new directory with any files: example
adtr.bat,adtr.c,adtr.h,adtr,mk, adtr.obj...

I read that with the makefile file I can create a executable file
adtr.mk ---> adtr.exe, but I desperate, I don´t find very good
information about that. Somebody can help me? Can create an
executable file with this configuration? Or this is not the goog way?
Thank for all.

riccardo

unread,
Jul 20, 2005, 3:45:14 AM7/20/05
to

Hi Alex,
there is a checkbox "Generated code only", in the same window where
you have found the Real Time Workshop parameters above: leave it
blank and the EXE file will be generated automatically and you will
not have to run the make utility.
hth
riccardo
ric-cardo-_ca-rr-oz-zo@~yah--oo.~c-o.-uk
(no tildes nor hyphens in my address)

Alex

unread,
Jul 20, 2005, 6:04:09 AM7/20/05
to
I leave blank, but don´t generate the exe file. :(

I compile adtr.mdl and the generate files are: adtr.bat, adtr.c,
adtr.h, adtr.mk, adtr.obj, adtr_data.c, adtr_data.obj, adtr_dt.h,
adtr_private.h, adtr_targ_data_map.m, adtr_types.h, ext_svr.obj,
modelsources.txt, rt_nonfinite.obj, rt_sim.obj, rt_stub.obj,
rtw_proj.tmw and updown.obj.

riccardo

unread,
Jul 20, 2005, 7:28:51 AM7/20/05
to

You've got all the object files and no "EXE" of any sort: if the RT
WIn target is supposed to produce an "EXE" file, it looks very much
like a linking problem.
Check in the documentation what sort of result does the Real-Time
Windows target produce, and where is it located, at the end of a code
build.
If the expected final result (the "EXE" file) is still missing, do
you get any error message from the linker ?
If not, you may have to switch the "verbose" flag on (again check the
documentation).
hth
riccardo

Titus Edelhofer

unread,
Jul 20, 2005, 7:39:39 AM7/20/05
to
Hi Alex, hi riccardo,
riccardo was on the right track: the Real-Time Windows Target does not
produce an executable (.exe) but a file with extension .rwd. This file can
be used from Simulink in external mode.
If you want to generate an .exe-file use the rsim-target or grt-target.

Titus

"riccardo" <no...@nospam.org> schrieb im Newsbeitrag
news:ef0e...@webx.raydaftYaTP...

0 new messages