<?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: Advanced Maneuvers using Mux and Demux</title>
	<atom:link href="http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/</link>
	<description>This blog is about Simulink.</description>
	<lastBuildDate>Sat, 11 Feb 2012 11:34:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Seth</title>
		<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-1070</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Tue, 27 Apr 2010 19:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-1070</guid>
		<description>@Jorge - I am glad you found what you needed!</description>
		<content:encoded><![CDATA[<p>@Jorge &#8211; I am glad you found what you needed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-1068</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Tue, 27 Apr 2010 14:12:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-1068</guid>
		<description>Well, Seth, you saved my day and spared me loads of rework! I&#039;ve always complained that one could not have different initiators for a function-call subsystem and it turns out that I was wrong, thank God! Keep up with the good work.</description>
		<content:encoded><![CDATA[<p>Well, Seth, you saved my day and spared me loads of rework! I&#8217;ve always complained that one could not have different initiators for a function-call subsystem and it turns out that I was wrong, thank God! Keep up with the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-809</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Tue, 21 Jul 2009 16:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-809</guid>
		<description>@Pat - I don&#039;t think I understand your question.  The conditional execution is possible with function call subsystems or any kind of conditional control in Simulink, but I don&#039;t understand the requirement to call a block given the &quot;name of the function&quot;.  &lt;strong&gt;Are you doing this from MATLAB code?&lt;/strong&gt;  If that is the case, I think you will be able to use the string handling functions to set a flag or input variable that determines which system executes.  Good luck.</description>
		<content:encoded><![CDATA[<p>@Pat &#8211; I don&#8217;t think I understand your question.  The conditional execution is possible with function call subsystems or any kind of conditional control in Simulink, but I don&#8217;t understand the requirement to call a block given the &#8220;name of the function&#8221;.  <strong>Are you doing this from MATLAB code?</strong>  If that is the case, I think you will be able to use the string handling functions to set a flag or input variable that determines which system executes.  Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-770</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Wed, 10 Jun 2009 08:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-770</guid>
		<description>Hi Seth
always love your small tutorial thanx.

I am struggling to see how I could implement the following, I suspect I might have to use function call or the like but I am simply not sure how and what to do.

let suppose I have a subsystem compose of 2 independant block
the first block implements a simple addition int&lt;-mysum(int, int) and the second block implements sqaring int&lt;-mysquare(int). I want to be able to call the execution of one of this block by given the name of the function to call and arguments using simulink

Thank a lot for any hints

pat</description>
		<content:encoded><![CDATA[<p>Hi Seth<br />
always love your small tutorial thanx.</p>
<p>I am struggling to see how I could implement the following, I suspect I might have to use function call or the like but I am simply not sure how and what to do.</p>
<p>let suppose I have a subsystem compose of 2 independant block<br />
the first block implements a simple addition int&lt;-mysum(int, int) and the second block implements sqaring int&lt;-mysquare(int). I want to be able to call the execution of one of this block by given the name of the function to call and arguments using simulink</p>
<p>Thank a lot for any hints</p>
<p>pat</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-762</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Tue, 26 May 2009 18:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-762</guid>
		<description>@Balaji Kalluri - The behavior you are looking for is provided in the MERGE block.  Essentially, outputs from conditionally executed blocks can be routed together onto the same signal line.  You can see this in the model mergedemo.mdl

&lt;pre class=&quot;code&quot;&gt;&gt;&gt; mergedemo&lt;/pre&gt;

&lt;image src=&quot;http://blogs.mathworks.com/images/seth/2009Q2/mergeDemo.png&quot; alt=&quot;Example of a Merge block in action.&quot;/&gt;
&lt;image src=&quot;http://blogs.mathworks.com/images/seth/2009Q2/mergeDemoScope.png&quot; alt=&quot;Merge Demo Scope output.&quot;/&gt;</description>
		<content:encoded><![CDATA[<p>@Balaji Kalluri &#8211; The behavior you are looking for is provided in the MERGE block.  Essentially, outputs from conditionally executed blocks can be routed together onto the same signal line.  You can see this in the model mergedemo.mdl</p>
<pre class="code">&gt;&gt; mergedemo</pre>
<p><image src="http://blogs.mathworks.com/images/seth/2009Q2/mergeDemo.png" alt="Example of a Merge block in action."/><br />
<image src="http://blogs.mathworks.com/images/seth/2009Q2/mergeDemoScope.png" alt="Merge Demo Scope output."/></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balaji Kalluri</title>
		<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-761</link>
		<dc:creator>Balaji Kalluri</dc:creator>
		<pubDate>Mon, 25 May 2009 14:58:24 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-761</guid>
		<description>Hi All
I would be highly obliged, if someone can show me a route to model a typical 2-to-1 Multiplexer, the way we have read &amp; understood it.I want to translate behavior of typical digital 2-to-1 Mux works like this into SIMULINK model.

if(sel==0)
  out = in1;
elseif (sel==1)
  out = in2;</description>
		<content:encoded><![CDATA[<p>Hi All<br />
I would be highly obliged, if someone can show me a route to model a typical 2-to-1 Multiplexer, the way we have read &amp; understood it.I want to translate behavior of typical digital 2-to-1 Mux works like this into SIMULINK model.</p>
<p>if(sel==0)<br />
  out = in1;<br />
elseif (sel==1)<br />
  out = in2;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans-Werner</title>
		<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-136</link>
		<dc:creator>Hans-Werner</dc:creator>
		<pubDate>Wed, 09 Apr 2008 11:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-136</guid>
		<description>Thank you for your hints on mux and demux blocks and function calls. Concerning function call subsystems there is one problem I´m struggling with. You can´t use function call subsystems or triggered subsystems for multirate systems. Instead of this you have to use if-action or switch subsystems.</description>
		<content:encoded><![CDATA[<p>Thank you for your hints on mux and demux blocks and function calls. Concerning function call subsystems there is one problem I´m struggling with. You can´t use function call subsystems or triggered subsystems for multirate systems. Instead of this you have to use if-action or switch subsystems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tami</title>
		<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-135</link>
		<dc:creator>tami</dc:creator>
		<pubDate>Tue, 08 Apr 2008 16:16:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-135</guid>
		<description>hi seth,

i am interested in learning how TeX format can be used in the &quot;documentation&quot; tab of a subsystem.  it does not seem to work and i have been told that functionality is not available now, but it sure would be great to add that in.</description>
		<content:encoded><![CDATA[<p>hi seth,</p>
<p>i am interested in learning how TeX format can be used in the &#8220;documentation&#8221; tab of a subsystem.  it does not seem to work and i have been told that functionality is not available now, but it sure would be great to add that in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-129</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Sat, 05 Apr 2008 17:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-129</guid>
		<description>@Hans Geerligs - Your questions about bus signals are right on target, and each deserves a good post to help frame the discussion.  My next post will be about bus objects and nonvirtual bus signals.  Regarding unification of vectors and buses, the changes to bus signals over the past few releases have actually moved away from unifying the concepts.  It turns out that there are too many edge cases that really complicate mixing of these concepts. I am planning to post about the Concatenate Block, and I hope to include some of the history behind mux and bus to give some clarification.

Rate transitions are a big topic.  I plan blog on this.  Thank you for the great suggestions.

@Paul J. - Specifying dimensions is a must for root level inports.  The Model Advisor incluses &quot;Check root model Inport block specification&quot; which reports this message:

&lt;blockquote&gt;Your model contains root-level Inport blocks with undefined attributes, such as dimensions, sample time, or data type. If you do not explicitly define these attributes, Simulink will use back-propagation from downstream blocks to assign values to the attributes when updating the model. This can lead to undesired simulation results. To avoid this, fully define the attributes of all of your model&#039;s root-level Inport blocks.&lt;/blockquote&gt;

I see specifying root Inport information as being good modeling style.  For subsystems, it is optional, but it really depends on how you are treating the subsystem.  If the subsystem is a utility from your library and it is designed to handle any width vector input, it makes sense to leave the size inherited (-1).  When the subsystem is a functional unit (atomic subsystem) and you can define it&#039;s interface, I think this is the time to include dimensions and even type information.  If you are only using subsystems to group blocks, and simplify your model (virtual subsystems), specifying sizes is unnecessary.

Function call subsystems are going to be a future blog topic.  Thanks for adding your voice to the community!</description>
		<content:encoded><![CDATA[<p>@Hans Geerligs &#8211; Your questions about bus signals are right on target, and each deserves a good post to help frame the discussion.  My next post will be about bus objects and nonvirtual bus signals.  Regarding unification of vectors and buses, the changes to bus signals over the past few releases have actually moved away from unifying the concepts.  It turns out that there are too many edge cases that really complicate mixing of these concepts. I am planning to post about the Concatenate Block, and I hope to include some of the history behind mux and bus to give some clarification.</p>
<p>Rate transitions are a big topic.  I plan blog on this.  Thank you for the great suggestions.</p>
<p>@Paul J. &#8211; Specifying dimensions is a must for root level inports.  The Model Advisor incluses &#8220;Check root model Inport block specification&#8221; which reports this message:</p>
<blockquote><p>Your model contains root-level Inport blocks with undefined attributes, such as dimensions, sample time, or data type. If you do not explicitly define these attributes, Simulink will use back-propagation from downstream blocks to assign values to the attributes when updating the model. This can lead to undesired simulation results. To avoid this, fully define the attributes of all of your model&#8217;s root-level Inport blocks.</p></blockquote>
<p>I see specifying root Inport information as being good modeling style.  For subsystems, it is optional, but it really depends on how you are treating the subsystem.  If the subsystem is a utility from your library and it is designed to handle any width vector input, it makes sense to leave the size inherited (-1).  When the subsystem is a functional unit (atomic subsystem) and you can define it&#8217;s interface, I think this is the time to include dimensions and even type information.  If you are only using subsystems to group blocks, and simplify your model (virtual subsystems), specifying sizes is unnecessary.</p>
<p>Function call subsystems are going to be a future blog topic.  Thanks for adding your voice to the community!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul J.</title>
		<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-128</link>
		<dc:creator>Paul J.</dc:creator>
		<pubDate>Fri, 04 Apr 2008 22:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-128</guid>
		<description>Seth,

I&#039;d be interested in more discussion on when it&#039;s a good idea, or a requirement, to specify the dimension and/or sample time of Inports either at the root level or in subsystems.  Also, more discussion, with examples, on the use of function call subsystems would be interesting.

Thanks, 
Paul</description>
		<content:encoded><![CDATA[<p>Seth,</p>
<p>I&#8217;d be interested in more discussion on when it&#8217;s a good idea, or a requirement, to specify the dimension and/or sample time of Inports either at the root level or in subsystems.  Also, more discussion, with examples, on the use of function call subsystems would be interesting.</p>
<p>Thanks,<br />
Paul</p>
]]></content:encoded>
	</item>
</channel>
</rss>

