<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Simulink Central Community</title>
	<atom:link href="http://blogs.mathworks.com/seth/2008/06/06/the-simulink-central-community/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/seth/2008/06/06/the-simulink-central-community/</link>
	<description>This blog is about Simulink.</description>
	<lastBuildDate>Tue, 14 Feb 2012 17:41:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: wei</title>
		<link>http://blogs.mathworks.com/seth/2008/06/06/the-simulink-central-community/#comment-600</link>
		<dc:creator>wei</dc:creator>
		<pubDate>Tue, 11 Nov 2008 05:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/06/06/the-simulink-central-community/#comment-600</guid>
		<description>Hi Khalid, try Simulink.ModelWorkspace reload.</description>
		<content:encoded><![CDATA[<p>Hi Khalid, try Simulink.ModelWorkspace reload.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khalid</title>
		<link>http://blogs.mathworks.com/seth/2008/06/06/the-simulink-central-community/#comment-597</link>
		<dc:creator>Khalid</dc:creator>
		<pubDate>Mon, 10 Nov 2008 10:31:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/06/06/the-simulink-central-community/#comment-597</guid>
		<description>Hi, I am trying to run, pause and stop a simulation from a m-file. I can start and top but could not figure out how to pause and resume it.

I can run the simulation using following code from gui
 options = simset(&#039;SrcWorkspace&#039;,&#039;current&#039;,...
        &#039;Solver&#039;,handles.SolverName,...
        &#039;FixedStep&#039;,handles.dt,...
        &#039;MaxDataPoints&#039;,handles.DataPoints);
[tout,xout,yout]=sim(handles.ModelName,[0 handles.Stop_time],options);

The above code does not allow simulation to be paused.
If I want to pause the simulation, I need to use set_param command as follows:
    set_param(handles.ModelName,...
        &#039;Solver&#039;,handles.SolverName,...
        &#039;FixedStep&#039;,num2str(handles.dt),...
        &#039;MaxDataPoints&#039;,num2str(handles.DataPoints),...
        &#039;StopTime&#039;,num2str(handles.Stop_time));
set_param(handles.ModelName, &#039;SimulationCommand&#039;, &#039;start&#039;);
and then associate following code with PAUSE button
set_param(handles.ModelName, &#039;SimulationCommand&#039;, &#039;pause&#039;);
but the above code does not allow the option of ‘SrcWorkspace’ being set to ‘current’. 

How should I go about it. I do not want the initialisation parameters to be made available to the MATLAB base workspace.</description>
		<content:encoded><![CDATA[<p>Hi, I am trying to run, pause and stop a simulation from a m-file. I can start and top but could not figure out how to pause and resume it.</p>
<p>I can run the simulation using following code from gui<br />
 options = simset(&#8216;SrcWorkspace&#8217;,'current&#8217;,&#8230;<br />
        &#8216;Solver&#8217;,handles.SolverName,&#8230;<br />
        &#8216;FixedStep&#8217;,handles.dt,&#8230;<br />
        &#8216;MaxDataPoints&#8217;,handles.DataPoints);<br />
[tout,xout,yout]=sim(handles.ModelName,[0 handles.Stop_time],options);</p>
<p>The above code does not allow simulation to be paused.<br />
If I want to pause the simulation, I need to use set_param command as follows:<br />
    set_param(handles.ModelName,&#8230;<br />
        &#8216;Solver&#8217;,handles.SolverName,&#8230;<br />
        &#8216;FixedStep&#8217;,num2str(handles.dt),&#8230;<br />
        &#8216;MaxDataPoints&#8217;,num2str(handles.DataPoints),&#8230;<br />
        &#8216;StopTime&#8217;,num2str(handles.Stop_time));<br />
set_param(handles.ModelName, &#8216;SimulationCommand&#8217;, &#8216;start&#8217;);<br />
and then associate following code with PAUSE button<br />
set_param(handles.ModelName, &#8216;SimulationCommand&#8217;, &#8216;pause&#8217;);<br />
but the above code does not allow the option of ‘SrcWorkspace’ being set to ‘current’. </p>
<p>How should I go about it. I do not want the initialisation parameters to be made available to the MATLAB base workspace.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChinKeat Low</title>
		<link>http://blogs.mathworks.com/seth/2008/06/06/the-simulink-central-community/#comment-513</link>
		<dc:creator>ChinKeat Low</dc:creator>
		<pubDate>Thu, 28 Aug 2008 08:05:56 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/06/06/the-simulink-central-community/#comment-513</guid>
		<description>Hi. I&#039;m a new user of Matlab &amp; Simulink. I would like to know more on building and simulating an electric power system. Is there any link that provides information on SimPowerSystem. Recommendation of a book would be great as i&#039;m still new to this application.</description>
		<content:encoded><![CDATA[<p>Hi. I&#8217;m a new user of Matlab &amp; Simulink. I would like to know more on building and simulating an electric power system. Is there any link that provides information on SimPowerSystem. Recommendation of a book would be great as i&#8217;m still new to this application.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

