From: "Phil Goddard" <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Stream data form MATLAB to Simulink
Date: Mon, 10 Dec 2012 18:13:15 +0000 (UTC)
Organization: Goddard Consulting
Lines: 16
Message-ID: <ka58nr$90c$>
References: <k8m06c$n2p$> <k8otfa$lsi$> <ka4gua$7sm$>
Reply-To: "Phil Goddard" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1355163195 9228 (10 Dec 2012 18:13:15 GMT)
NNTP-Posting-Date: Mon, 10 Dec 2012 18:13:15 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 26433
Xref: comp.soft-sys.matlab:784552

There is absolutely no need to use a pause.

To see this,
- Open a new model
- connect a Constant block to a Display block
- change the final time to inf.
- start the model.

Then from within MATLAB (either the command line or within a file) type
>> set_param('untitled/Constant','Value','30');
and notice that the display changes.
Do the same for other gain values and again see the display change.

Your model is no doubt more complex than this, but the same concept applies.