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 07:54:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 34
Message-ID: <g1gemq$s55$1@fred.mathworks.com>
References: <g1ck2e$b5r$1@fred.mathworks.com> <87iqx0mz21.fsf@echo.mueller-schleicher.i>
Reply-To: "Hans Gohle" <ghostryder@gmx.de>
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 1211874842 28837 172.30.248.35 (27 May 2008 07:54:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 27 May 2008 07:54:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1323309
Xref: news.mathworks.com comp.soft-sys.matlab:470529



Ralph Schleicher <rs@ralph-schleicher.de> wrote in message
<87iqx0mz21.fsf@echo.mueller-schleicher.i>...
 
> Do you look for somethink like that:
> 
> 
> function a_function
>   sim('a_model');
>   % Propagate workspace variables.
>   my_gui('sim-data', a, b, c);
> 
> 
> function my_gui(varargin)
>   switch varargin{1}
>    case 'sim-data'
>     a = varargin{2};
>     b = varargin{3};
>     c = varargin{4};
>   end

I'm sorry but I don't think that I have stated my problem
correctly. I'll give it one more try: 

I'm executing a model in 'scope' mode which means that I set
the simulation time to 'inf'. In that model there are
several 'To Workspace' variables. The problem is that I need
the values of these blocks during the simulation time. 

So I need any mechanism with that I can forward the
simulation data to my GUI during the simulation itself. 

Hopefully I described my problem a bit better...

Thanks, g.