Path: news.mathworks.com!not-for-mail
From: "Matthew Wade" <cosmicspacepig@googlemail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Integrating compiled m-file with compiled simulink (RTW?) model
Date: Tue, 8 Jul 2008 13:31:01 +0000 (UTC)
Organization: ttz-Bremerhaven
Lines: 31
Message-ID: <g4vq6l$8lr$1@fred.mathworks.com>
Reply-To: "Matthew Wade" <cosmicspacepig@googlemail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1215523861 8891 172.30.248.37 (8 Jul 2008 13:31:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 8 Jul 2008 13:31:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1052756
Xref: news.mathworks.com comp.soft-sys.matlab:478154



Hi,

I have a series of Matlab GUIs with different 
functionalities (database, visualisation, excel data 
transfer). All of these compile straightforwardly with the 
Matlab Compiler 4.3.

In one of the GUIs I have a button that initiates the 
simulation of a simulink model and as 
functions 'sim', 'simset' etc, cannot be compiled in 
matlab, I have turned to Real Time Workshop. 

However, before I begin to understand how to create stand-
alone applications of simulink models via RTW, I would like 
to know if there is a way to integrate the command to run 
this model into the compiled GUI executable.

i.e. the code [T,X,Y]=sim('mymodel'...)

will not compile using mcc. 

If I  manage to get a stand-alone application 
for 'mymodel'...how do I replace the above code into the m-
file/executable.

Best regards,

Matt