Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Scope of 'To Workspace' variables
Date: Sat, 29 Nov 2008 23:40:17 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 22
Message-ID: <ggsjt1$2vq$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: <HIDDEN>
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 1228002017 3066 172.30.248.37 (29 Nov 2008 23:40:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 29 Nov 2008 23:40:17 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1250509
Xref: news.mathworks.com comp.soft-sys.matlab:503849


Hi,
I am using Simulink v6.0 (R14) and 
set_param(modelname,'SimulationCommand','WriteDataLogs')
fails with an error message that that 'WriteDataLogs' is an invalid setting. I suspect that my version does not support this value of SimulationCommand.

I want to monitor active states of a Stateflow chart "during" the simulation. If I just log the signals (states) then the ModelDataLog object is available in the workspace only after the simulation is over. Can anyone suggest what to do?
Thanks,
Aditya.

"Omur Bas" <omur.bas@promodxxxxxx.com.tr> wrote in message <g1gu9k$o6d$1@fred.mathworks.com>...
> 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
>