Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail
From: Ralph Schleicher <rs@mueller-schleicher.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: communication between simulink and matlab gui
Date: Sat, 10 May 2008 10:05:14 +0200
Organization: Ralph Schleicher, Freelance Engineer
Lines: 18
Message-ID: <87r6car3d1.fsf@echo.mueller-schleicher.i>
References: <fv9h4j$t6d$1@fred.mathworks.com> <fvbi3v$624$1@fred.mathworks.com> <fvc6ic$n0f$1@fred.mathworks.com> <878wyuvuwu.fsf@echo.mueller-schleicher.i> <g02krv$r19$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.t-online.com 1210406942 02 22997 O7ZHOfDLzUT7RzN 080510 08:09:02
X-Complaints-To: usenet-abuse@t-online.de
X-ID: GtsvTgZUoecljI8KcMoZ95qmvRxwDtyoixd2tIdWhBCXXw31XI1XQl
X-Face: &_l@,v,={27&f~U1u&T}}@PiTrV\4A7due$J*se+PiDvOWS][xPeQt/3_5MBC6]tT}a;0te%<^Tv]Qog%#OsE;AeVgoye>u/9@!Z`$>v[(=ps'%<XU:rR5C&EGM#$R~mH2[#Z;
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)
Cancel-Lock: sha1:iHc2OZSjUBZVOtS4Cuzg/9TZDzE=
Xref: news.mathworks.com comp.soft-sys.matlab:467679


"elizabeth weitzel" <elizabeth.weitzel@baesystems.com> writes:

> Is there a way to plot in a GUI window, realtime, the 
> values that are being generated by a simulink model? Like 
> having a scope but within a GUI screen?

Yes of course.  Add a call-back function to your GUI returning
the handles of the UI objects.  Write an M-file S-function with
the Simulink signals as input.  Query and cache the UI object
handles in the StartFcn, then update the UI objects in the
mdlUpdate procedure.  Done that, works like a charm.

-- 
Ralph Schleicher, Freelance Engineer    http://ralph-schleicher.de

Development * Consulting * Training
Mathematical Modeling and Simulation
Software Tools