Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: standalone program with changed input for Simulink.. How?
Date: Sat, 14 Nov 2009 18:17:01 +0000 (UTC)
Organization: KAU
Lines: 17
Message-ID: <hdms6t$2il$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1258222621 2645 172.30.248.35 (14 Nov 2009 18:17:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 14 Nov 2009 18:17:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2092387
Xref: news.mathworks.com comp.soft-sys.matlab:585127


Hi,
I've checked many threads here talking about making a standalone .exe Simulink model and evoking it from the standalone .exe program, but i couldn't find any talked about the my following issue:

My program takes input from the user and starts the Simulink Model using these inputs (inputs changes by user almost every time) then the output from the Simulink model decides wither the program continue or not!

what i know is i have to use 'rtwbuild()' to have an .exe version of the Simulink model, but the main issue here is how to send these inputs every time to the Simulink from the main standalone program and taking the output in the Main standalone program?

So, how to do that as a standalone program?

Code that starts the Simulink:

global DSSv;
options = simset('SrcWorkspace', 'parent');
sim('DSS.mdl',[], options);
DSSv.DMC = DMC(1);

thanks in advance..