<?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 Masking Concepts</title>
	<atom:link href="http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/</link>
	<description>This blog is about Simulink.</description>
	<lastBuildDate>Mon, 13 Feb 2012 09:45:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Aloïs Z.</title>
		<link>http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-1479</link>
		<dc:creator>Aloïs Z.</dc:creator>
		<pubDate>Thu, 19 May 2011 07:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-1479</guid>
		<description>Hello,

I was wondering if it was possible to use a mask to prevent people from modifying your block (i.e. disable the &quot;Look under Mask Function&quot;). Any other way of doing it without using Masks is fine too.

Regards,
Aloïs</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I was wondering if it was possible to use a mask to prevent people from modifying your block (i.e. disable the &#8220;Look under Mask Function&#8221;). Any other way of doing it without using Masks is fine too.</p>
<p>Regards,<br />
Aloïs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy Rouleau</title>
		<link>http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-1376</link>
		<dc:creator>Guy Rouleau</dc:creator>
		<pubDate>Fri, 18 Mar 2011 15:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-1376</guid>
		<description>@Jerker Wågberg, I do not have all the details of your implementation, but this is surprising. I recommend contacting technical support with an example model so this can be investigated.</description>
		<content:encoded><![CDATA[<p>@Jerker Wågberg, I do not have all the details of your implementation, but this is surprising. I recommend contacting technical support with an example model so this can be investigated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerker Wågberg</title>
		<link>http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-1374</link>
		<dc:creator>Jerker Wågberg</dc:creator>
		<pubDate>Fri, 18 Mar 2011 10:57:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-1374</guid>
		<description>More than a year since last comment in this thread. Got to keep i alive:)

I want to mask an ordinary Inport using
&lt;pre&gt;
set_param(PORT, &#039;Mask&#039;, &#039;on&#039;)
&lt;/pre&gt;
, add some custom parameters and put it in a library.

Unfortunately, the port numbering doesn&#039;t remain as specified when a model using these masked library ports is save, closed and then reloaded. Instead, the port numbering follows the sorted order of the ports names!

Since it is a bit inconvenient, to say the least, to have to name the ports in port number order, I am wondering if there is a way around this behaviour.

My current workaround is to disable the masked port&#039;s link to the library in it&#039;s CopyFcn callback, but that, of course, makes it harder to update old models when I change the library block.

(Using 2010b)</description>
		<content:encoded><![CDATA[<p>More than a year since last comment in this thread. Got to keep i alive:)</p>
<p>I want to mask an ordinary Inport using</p>
<pre>
set_param(PORT, 'Mask', 'on')
</pre>
<p>, add some custom parameters and put it in a library.</p>
<p>Unfortunately, the port numbering doesn&#8217;t remain as specified when a model using these masked library ports is save, closed and then reloaded. Instead, the port numbering follows the sorted order of the ports names!</p>
<p>Since it is a bit inconvenient, to say the least, to have to name the ports in port number order, I am wondering if there is a way around this behaviour.</p>
<p>My current workaround is to disable the masked port&#8217;s link to the library in it&#8217;s CopyFcn callback, but that, of course, makes it harder to update old models when I change the library block.</p>
<p>(Using 2010b)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-948</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Tue, 19 Jan 2010 16:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-948</guid>
		<description>@Adriaan - Thanks for answering your own question!  The OpenFcn is available for blocks, and gets called when you double click.  This makes it possible to launch any interface you want from your blocks.</description>
		<content:encoded><![CDATA[<p>@Adriaan &#8211; Thanks for answering your own question!  The OpenFcn is available for blocks, and gets called when you double click.  This makes it possible to launch any interface you want from your blocks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adriaan</title>
		<link>http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-946</link>
		<dc:creator>Adriaan</dc:creator>
		<pubDate>Tue, 19 Jan 2010 09:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-946</guid>
		<description>Me again... found the answer to my previous question, thank you!


 If the mask editor doesn’t provide the flexibility you need, make a GUI using M-code or GUIDE and set the OpenFcn for the block to launch your GUI 

by Seth from http://blogs.mathworks.com/seth/2008/08/13/dynamic-mask-dialogs/</description>
		<content:encoded><![CDATA[<p>Me again&#8230; found the answer to my previous question, thank you!</p>
<p> If the mask editor doesn’t provide the flexibility you need, make a GUI using M-code or GUIDE and set the OpenFcn for the block to launch your GUI </p>
<p>by Seth from <a href="http://blogs.mathworks.com/seth/2008/08/13/dynamic-mask-dialogs/" rel="nofollow">http://blogs.mathworks.com/seth/2008/08/13/dynamic-mask-dialogs/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adriaan</title>
		<link>http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-945</link>
		<dc:creator>Adriaan</dc:creator>
		<pubDate>Tue, 19 Jan 2010 09:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-945</guid>
		<description>Hello,

I am just wondering, is it possible to override the mask &#039;function&#039; to execute my own Matlab GUI to set the parameters. I find the mask editor very limited - I want to create a GUI with radiobuttons, groupboxes, etc.

Regards,

Adriaan</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am just wondering, is it possible to override the mask &#8216;function&#8217; to execute my own Matlab GUI to set the parameters. I find the mask editor very limited &#8211; I want to create a GUI with radiobuttons, groupboxes, etc.</p>
<p>Regards,</p>
<p>Adriaan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu</title>
		<link>http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-690</link>
		<dc:creator>Radu</dc:creator>
		<pubDate>Tue, 17 Feb 2009 18:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-690</guid>
		<description>Is it possible to create panes in a mask? For example the “Product” block from the “Commonly used Blocks” has to panes “Main” and “Signal Attributes”. I can not find documentation on this topic.
Thank you in advanced!</description>
		<content:encoded><![CDATA[<p>Is it possible to create panes in a mask? For example the “Product” block from the “Commonly used Blocks” has to panes “Main” and “Signal Attributes”. I can not find documentation on this topic.<br />
Thank you in advanced!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-616</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Tue, 25 Nov 2008 13:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-616</guid>
		<description>@Ryan - Thanks for the clear use case!  This is very helpful in explaining your request to our development team, which is exactly what I have done with it. I can&#039;t suggest a coloring based workaround for this.  I have seen people embed information in the signal label, for example: .</description>
		<content:encoded><![CDATA[<p>@Ryan &#8211; Thanks for the clear use case!  This is very helpful in explaining your request to our development team, which is exactly what I have done with it. I can&#8217;t suggest a coloring based workaround for this.  I have seen people embed information in the signal label, for example: .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-611</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 19 Nov 2008 15:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-611</guid>
		<description>@Seth

I do share a similar point of view on the use of goto and from blocks.

On the signal colouring, Highlight to Source/Destination is good to analyze one signal at a time. I&#039;m trying to think of a way to classify signals based on a similar property.

A simple example would be if I had 3 Sensors. Sensor 1 and 2 operate on 5Volts and Sensor 3 operates on 3.3 Volts .The idea is to have the signals Sensor1, Sensor2 say coloured in red and Sensor3 perhaps in green.

I was actually expecting to see a Background (Foreground...can’t really have both for a signal :) ) colour option when I right clicked on the signal. Too bad there wasn’t one !

I tried opening the model as a text file to see if there were properties I could manipulate. I could do this if I had just an unconnected signal - not really useful.
But I think the way Simulink is designed it inherits the subsystem colour the signal originates from. Wonder if there’s a work around for this</description>
		<content:encoded><![CDATA[<p>@Seth</p>
<p>I do share a similar point of view on the use of goto and from blocks.</p>
<p>On the signal colouring, Highlight to Source/Destination is good to analyze one signal at a time. I&#8217;m trying to think of a way to classify signals based on a similar property.</p>
<p>A simple example would be if I had 3 Sensors. Sensor 1 and 2 operate on 5Volts and Sensor 3 operates on 3.3 Volts .The idea is to have the signals Sensor1, Sensor2 say coloured in red and Sensor3 perhaps in green.</p>
<p>I was actually expecting to see a Background (Foreground&#8230;can’t really have both for a signal :) ) colour option when I right clicked on the signal. Too bad there wasn’t one !</p>
<p>I tried opening the model as a text file to see if there were properties I could manipulate. I could do this if I had just an unconnected signal &#8211; not really useful.<br />
But I think the way Simulink is designed it inherits the subsystem colour the signal originates from. Wonder if there’s a work around for this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-610</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Wed, 19 Nov 2008 14:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/08/05/advanced-masking-concepts/#comment-610</guid>
		<description>@Ryan - thanks for adding to the discussion.  I am not one of those people who universally decry the use of GoTo and From blocks.  I think they serve a very important purpose when cleaning up the look of a diagram.  Instances where GoTo and From cause problems are usually when there is no consistency in how they are applied.  My personal preference is to see the application of modeling standards to the use of GoTo/From. For example, if all GoTo and From use will be local to a system, and never global, I think this can go a long way to cleaning up the diagram.  I also like your idea of using colors to match up the pairs of blocks, or to group them in some way.

Regarding your request to provide signal specific coloring, have you ever tried right click -&gt; Highlight to Source/Destination?  I find this very helpful when debugging the model.  In a very large model you must be patient using this feature as the time to recolor the model is proportional to the number of blocks and lines in it.  When you are done tracing, right click -&gt; Remove Highlighting.</description>
		<content:encoded><![CDATA[<p>@Ryan &#8211; thanks for adding to the discussion.  I am not one of those people who universally decry the use of GoTo and From blocks.  I think they serve a very important purpose when cleaning up the look of a diagram.  Instances where GoTo and From cause problems are usually when there is no consistency in how they are applied.  My personal preference is to see the application of modeling standards to the use of GoTo/From. For example, if all GoTo and From use will be local to a system, and never global, I think this can go a long way to cleaning up the diagram.  I also like your idea of using colors to match up the pairs of blocks, or to group them in some way.</p>
<p>Regarding your request to provide signal specific coloring, have you ever tried right click -> Highlight to Source/Destination?  I find this very helpful when debugging the model.  In a very large model you must be patient using this feature as the time to recolor the model is proportional to the number of blocks and lines in it.  When you are done tracing, right click -> Remove Highlighting.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

