Path: news.mathworks.com!not-for-mail
From: "Omur Bas" <omur.bas@promodxxxxxx.com.tr>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Scope of 'To Workspace' variables
Date: Tue, 27 May 2008 12:20:04 +0000 (UTC)
Organization: Promod Research and Software
Lines: 27
Message-ID: <g1gu9k$o6d$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>
Reply-To: "Omur Bas" <omur.bas@promodxxxxxx.com.tr>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1211890804 24781 172.30.248.38 (27 May 2008 12:20:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 27 May 2008 12:20:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105608
Xref: news.mathworks.com comp.soft-sys.matlab:470581



"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.

Omur Bas
www.promodsoftware.com.tr