Path: news.mathworks.com!not-for-mail
From: "Hans Gohle" <ghostryder@gmx.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Scope of 'To Workspace' variables
Date: Tue, 27 May 2008 12:41:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 26
Message-ID: <g1gvgu$6dn$1@fred.mathworks.com>
References: <g1ck2e$b5r$1@fred.mathworks.com> <87iqx0mz21.fsf@echo.mueller-schleicher.i> <g1gemq$s55$1@fred.mathworks.com> <g1gr2f$s6j$1@fred.mathworks.com> <g1gsbm$868$1@fred.mathworks.com> <g1gu9k$o6d$1@fred.mathworks.com>
Reply-To: "Hans Gohle" <ghostryder@gmx.de>
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 1211892062 6583 172.30.248.37 (27 May 2008 12:41:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 27 May 2008 12:41:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1323309
Xref: news.mathworks.com comp.soft-sys.matlab:470590



"Omur Bas" <omur.bas@promodxxxxxx.com.tr> wrote in message
<g1gu9k$o6d$1@fred.mathworks.com>...
> "Hans Gohle" <ghostryder@gmx.de> wrote in message
> <g1gsbm$868$1@fred.mathworks.com>...
> > "helper " <spamless@nospam.com> wrote in message
> > <g1gr2f$s6j$1@fred.mathworks.com>...
> > > I'm not sure I follow exactly, but maybe the ASSIGNIN and 
> > > EVALIN functions would help you?
> > 
> > I know these functions. But I need variables from a running
> > model (Simulink) in the workspace although the model is
> > still running... So I think the 'assignin' and 'evalin'
> > functions don't help me unless I use s-functions to transfer
> > the data to workspace...
> > 
> 
> You must issue a WriteLogs command from a function or the
> command line to get the data logged up until that point
> while the simulation is running.
> 
> set_param(modelname,'SimulationCommand','WriteDataLogs')
> 
> I hope this answers your question.

Thanks a lot! That's EXACTLY what I was looking for!