<?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: Advanced Maneuvers using Mux and Demux</title>
	<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/</link>
	<description>This blog is about Simulink.</description>
	<pubDate>Mon, 23 Nov 2009 00:19:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<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>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-809</guid>
		<description>@Pat - I don'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't understand the requirement to call a block given the "name of the function".  &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 - 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>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&#60;-mysum(int, int) and the second block implements sqaring int&#60;-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>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="code"&gt;&#62;&#62; mergedemo&lt;/pre&gt;

&lt;image src="http://blogs.mathworks.com/images/seth/2009Q2/mergeDemo.png" alt="Example of a Merge block in action."/&gt;
&lt;image src="http://blogs.mathworks.com/images/seth/2009Q2/mergeDemoScope.png" alt="Merge Demo Scope output."/&gt;</description>
		<content:encoded><![CDATA[<p>@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</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>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 &#38; 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>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>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 "documentation" 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>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 "Check root model Inport block specification" 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'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'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 - 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. - 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>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-128</guid>
		<description>Seth,

I'd be interested in more discussion on when it'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>
	<item>
		<title>By: Han Geerligs</title>
		<link>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-126</link>
		<dc:creator>Han Geerligs</dc:creator>
		<pubDate>Fri, 04 Apr 2008 12:39:48 +0000</pubDate>
		<guid>http://blogs.mathworks.com/seth/2008/04/03/advanced-maneuvers-using-mux-and-demux/#comment-126</guid>
		<description>Hi Seth,

firstly, kudos for your blog. Nice to read about mental models, as this is the way I face Simulink.

Some remarks/questions:
* is any unification of vectors and buses foreseen? One might consider buses as "hierarchical named grouped vectors"
* I checked on the "bus selection mode": it is possible to feed one scalar into a demux with bus selection mode=on. According to the documentation it should not be possible. Is this by design or accidentally?
* are there any plans to break compatibility between buses and vecors, as enabled by the bus selection mode?
* I would be interested in more explanation on virtal/nonvirtual buses. Is this in the pipeline for your blog?

A little off-topic: I am also interested into the relation between asynchronous rate transitions (various setups for this), the simulation of it and the code generation for it. Any plans to blog on this?</description>
		<content:encoded><![CDATA[<p>Hi Seth,</p>
<p>firstly, kudos for your blog. Nice to read about mental models, as this is the way I face Simulink.</p>
<p>Some remarks/questions:<br />
* is any unification of vectors and buses foreseen? One might consider buses as &#8220;hierarchical named grouped vectors&#8221;<br />
* I checked on the &#8220;bus selection mode&#8221;: it is possible to feed one scalar into a demux with bus selection mode=on. According to the documentation it should not be possible. Is this by design or accidentally?<br />
* are there any plans to break compatibility between buses and vecors, as enabled by the bus selection mode?<br />
* I would be interested in more explanation on virtal/nonvirtual buses. Is this in the pipeline for your blog?</p>
<p>A little off-topic: I am also interested into the relation between asynchronous rate transitions (various setups for this), the simulation of it and the code generation for it. Any plans to blog on this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
