<?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: Searching in Simulink</title>
	<atom:link href="http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/</link>
	<description>This blog is about Simulink.</description>
	<lastBuildDate>Fri, 10 Feb 2012 01:06:21 +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 Popinchalk</title>
		<link>http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-1279</link>
		<dc:creator>Seth Popinchalk</dc:creator>
		<pubDate>Fri, 29 Oct 2010 12:48:05 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-1279</guid>
		<description>@U N Bharathiraja - Thanks for the answer.  I am always amazed at what can be done with regular expressions.</description>
		<content:encoded><![CDATA[<p>@U N Bharathiraja &#8211; Thanks for the answer.  I am always amazed at what can be done with regular expressions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: U N Bharathiraja</title>
		<link>http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-1269</link>
		<dc:creator>U N Bharathiraja</dc:creator>
		<pubDate>Fri, 22 Oct 2010 07:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-1269</guid>
		<description>Hi!,

The answer for the question asked by Seth.

Challenge:
How would you find blocks that have MaskHelp without specifying the value it is set to?
Answer:
&lt;pre&gt;
blksWithHelp = find_system(gcs,&#039;RegExp&#039;,&#039;on&#039;,&#039;MaskHelp&#039;,&#039;.+&#039;)
&lt;/pre&gt;
 
find_system could be used with regular expressions constraints as well. If &#039;on&#039;, search treats search expressions as regular expressions. The default is &#039;off&#039;.

&quot;.+&quot; expects atleast one character in the MaskHelp.

Regards,
Bharathiraja.</description>
		<content:encoded><![CDATA[<p>Hi!,</p>
<p>The answer for the question asked by Seth.</p>
<p>Challenge:<br />
How would you find blocks that have MaskHelp without specifying the value it is set to?<br />
Answer:</p>
<pre>
blksWithHelp = find_system(gcs,'RegExp','on','MaskHelp','.+')
</pre>
<p>find_system could be used with regular expressions constraints as well. If &#8216;on&#8217;, search treats search expressions as regular expressions. The default is &#8216;off&#8217;.</p>
<p>&#8220;.+&#8221; expects atleast one character in the MaskHelp.</p>
<p>Regards,<br />
Bharathiraja.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorenzo</title>
		<link>http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-904</link>
		<dc:creator>Lorenzo</dc:creator>
		<pubDate>Wed, 25 Nov 2009 13:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-904</guid>
		<description>Hello!
I have to change the DECIMATION of &#039;To Workspace&#039; block in my libraries (and I have a lot of this blocks in my libraries...)
How I can do this from command line (with find_system I think...but I don&#039;t know how...)?

Thank you.</description>
		<content:encoded><![CDATA[<p>Hello!<br />
I have to change the DECIMATION of &#8216;To Workspace&#8217; block in my libraries (and I have a lot of this blocks in my libraries&#8230;)<br />
How I can do this from command line (with find_system I think&#8230;but I don&#8217;t know how&#8230;)?</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Tocci</title>
		<link>http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-902</link>
		<dc:creator>Mike Tocci</dc:creator>
		<pubDate>Mon, 23 Nov 2009 12:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-902</guid>
		<description>Hi Ben,

What version are you using?  I just tried this on the demo model sl_subsys_enab1 in 9a and got,

find_system(&#039;sl_subsys_enab1&#039;, &#039;FollowLinks&#039;,&#039;on&#039;, &#039;LookUnderMasks&#039;,&#039;all&#039;, &#039;BlockType&#039;,&#039;SubSystem&#039;)
ans = 
    &#039;sl_subsys_enab1/ Subsystem
definitions&#039;
    &#039;sl_subsys_enab1/enab1&#039;
    &#039;sl_subsys_enab1/enab2&#039;

The one thing I can think of is that &quot;gcs&quot; is not pointing to the model you think it is.  If you enter the full model name, does it still not work?

Mike</description>
		<content:encoded><![CDATA[<p>Hi Ben,</p>
<p>What version are you using?  I just tried this on the demo model sl_subsys_enab1 in 9a and got,</p>
<p>find_system(&#8216;sl_subsys_enab1&#8242;, &#8216;FollowLinks&#8217;,'on&#8217;, &#8216;LookUnderMasks&#8217;,'all&#8217;, &#8216;BlockType&#8217;,'SubSystem&#8217;)<br />
ans =<br />
    &#8216;sl_subsys_enab1/ Subsystem<br />
definitions&#8217;<br />
    &#8216;sl_subsys_enab1/enab1&#8242;<br />
    &#8216;sl_subsys_enab1/enab2&#8242;</p>
<p>The one thing I can think of is that &#8220;gcs&#8221; is not pointing to the model you think it is.  If you enter the full model name, does it still not work?</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Brown</title>
		<link>http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-901</link>
		<dc:creator>Ben Brown</dc:creator>
		<pubDate>Mon, 23 Nov 2009 05:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-901</guid>
		<description>The following does not appear to find enabled subsystems!

find_system(gcs, &#039;FollowLinks&#039;,&#039;on&#039;, &#039;LookUnderMasks&#039;,&#039;all&#039;, &#039;BlockType&#039;,&#039;SubSystem&#039;)

I realize these subsystems have dual identities but I would have expected this to work.  Is there a magic argument to find_system to get the expected behavior?</description>
		<content:encoded><![CDATA[<p>The following does not appear to find enabled subsystems!</p>
<p>find_system(gcs, &#8216;FollowLinks&#8217;,'on&#8217;, &#8216;LookUnderMasks&#8217;,'all&#8217;, &#8216;BlockType&#8217;,'SubSystem&#8217;)</p>
<p>I realize these subsystems have dual identities but I would have expected this to work.  Is there a magic argument to find_system to get the expected behavior?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Raeth</title>
		<link>http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-640</link>
		<dc:creator>Peter Raeth</dc:creator>
		<pubDate>Mon, 22 Dec 2008 18:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-640</guid>
		<description>Greetings Seth.

The thread above leads us in a direction we really need to go.

We have a need to retrieve a list of signal names and their associated dimensions from an existing compound bus. The retrived information should be in the form of something that cam be copy/pasted in text form.

Reading the above thread, we can see that the following commands yield a list of all lines in a model. How can we get the list of lines within a specific compound bus and get the format of each line?

allLines = find_system(&#039;Dimensions&#039;, &#039;FollowLinks&#039;, &#039;on&#039;, &#039;LookUnderMasks&#039;, &#039;All&#039;, &#039;FindAll&#039;, &#039;on&#039;, &#039;Type&#039;, &#039;line&#039;)

lineNames = get_param(allLines, &#039;Name&#039;)

Thank you for whatever insights you can offer.


Best,

Peter.</description>
		<content:encoded><![CDATA[<p>Greetings Seth.</p>
<p>The thread above leads us in a direction we really need to go.</p>
<p>We have a need to retrieve a list of signal names and their associated dimensions from an existing compound bus. The retrived information should be in the form of something that cam be copy/pasted in text form.</p>
<p>Reading the above thread, we can see that the following commands yield a list of all lines in a model. How can we get the list of lines within a specific compound bus and get the format of each line?</p>
<p>allLines = find_system(&#8216;Dimensions&#8217;, &#8216;FollowLinks&#8217;, &#8216;on&#8217;, &#8216;LookUnderMasks&#8217;, &#8216;All&#8217;, &#8216;FindAll&#8217;, &#8216;on&#8217;, &#8216;Type&#8217;, &#8216;line&#8217;)</p>
<p>lineNames = get_param(allLines, &#8216;Name&#8217;)</p>
<p>Thank you for whatever insights you can offer.</p>
<p>Best,</p>
<p>Peter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raja</title>
		<link>http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-629</link>
		<dc:creator>Raja</dc:creator>
		<pubDate>Fri, 05 Dec 2008 12:24:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-629</guid>
		<description>Dear Seth

I have been in Matlab for the past one month .
Can u tell me what is LineChildren is all about.
I don have any idea about this.</description>
		<content:encoded><![CDATA[<p>Dear Seth</p>
<p>I have been in Matlab for the past one month .<br />
Can u tell me what is LineChildren is all about.<br />
I don have any idea about this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ali</title>
		<link>http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-578</link>
		<dc:creator>ali</dc:creator>
		<pubDate>Thu, 16 Oct 2008 11:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-578</guid>
		<description>dear seth,
i would like to design PID controller in matlab/simulink for control the process trainer.
please help.
i think my designed was wrong....</description>
		<content:encoded><![CDATA[<p>dear seth,<br />
i would like to design PID controller in matlab/simulink for control the process trainer.<br />
please help.<br />
i think my designed was wrong&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kieran Parsons</title>
		<link>http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-254</link>
		<dc:creator>Kieran Parsons</dc:creator>
		<pubDate>Mon, 26 May 2008 13:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-254</guid>
		<description>@Seth (13) - Thanks for the info. I would like to programmatically add viewers to a model, but there is no API to do this. Instead I think I can copy a viewer from one model into another and change the port it is connected to. For this the ability to find viewers in a model is useful.</description>
		<content:encoded><![CDATA[<p>@Seth (13) &#8211; Thanks for the info. I would like to programmatically add viewers to a model, but there is no API to do this. Instead I think I can copy a viewer from one model into another and change the port it is connected to. For this the ability to find viewers in a model is useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malte</title>
		<link>http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-251</link>
		<dc:creator>Malte</dc:creator>
		<pubDate>Sun, 25 May 2008 20:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/03/04/searching-in-simulink/#comment-251</guid>
		<description>Hi,

I want to detect which block are connected to each other. 

(1) Discover all e.g. sum blocks by find_system.

(2) Discover all blocks connected to the found sum blocks. 

Any idea of how to do (2)?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I want to detect which block are connected to each other. </p>
<p>(1) Discover all e.g. sum blocks by find_system.</p>
<p>(2) Discover all blocks connected to the found sum blocks. </p>
<p>Any idea of how to do (2)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

