<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: The Simulink Central Community</title>
	<link>http://blogs.mathworks.com/seth/2008/06/06/the-simulink-central-community/</link>
	<description>This blog is about Simulink.</description>
	<pubDate>Mon, 23 Nov 2009 01:55:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.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>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>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('SrcWorkspace','current',...
        'Solver',handles.SolverName,...
        'FixedStep',handles.dt,...
        'MaxDataPoints',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,...
        'Solver',handles.SolverName,...
        'FixedStep',num2str(handles.dt),...
        'MaxDataPoints',num2str(handles.DataPoints),...
        'StopTime',num2str(handles.Stop_time));
set_param(handles.ModelName, 'SimulationCommand', 'start');
and then associate following code with PAUSE button
set_param(handles.ModelName, 'SimulationCommand', 'pause');
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(&#8217;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;, &#8217;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>http://blogs.mathworks.com/seth/2008/06/06/the-simulink-central-community/#comment-513</guid>
		<description>Hi. I'm a new user of Matlab &#38; 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'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>
