<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265015</link>
    <title>MATLAB Central Newsreader - Activate/deactivate, enable/disable Simulink Blocks</title>
    <description>Feed for thread: Activate/deactivate, enable/disable Simulink Blocks</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 04 Nov 2009 21:50:19 -0500</pubDate>
      <title>Activate/deactivate, enable/disable Simulink Blocks</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265015#692202</link>
      <author>James Pau</author>
      <description>Hi there, I have tried looking online but there doesn't seem to be a solution or workaround for this that is readily available. What I want to do is disable or deactivate a simulink block that is causing an error when trying to run a simulation. This is because i have a model that can either take an input from a file or from an external device that is connected to the PC. Which input is determined by a manual switch block. When the device is not connected it's corresponding input block brings up an error that says the device is not connected and the model does not run - even if I am trying to read from a file and do not need the external device to be connected. Is there a way for me to suppress this error?  I want to maintain all of this in a single model and the only workaround i can see is to duplicate it and have one with input from file and the other with input from external device.&lt;br&gt;
&lt;br&gt;
Thanks for your help!&lt;br&gt;
James</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 22:36:01 -0500</pubDate>
      <title>Re: Activate/deactivate, enable/disable Simulink Blocks</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265015#692216</link>
      <author>Praetorian</author>
      <description>On Nov 4, 2:50&#160;pm, &quot;James Pau&quot; &amp;lt;the_manti...@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi there, I have tried looking online but there doesn't seem to be a solution or workaround for this that is readily available. What I want to do is disable or deactivate a simulink block that is causing an error when trying to run a simulation. This is because i have a model that can either take an input from a file or from an external device that is connected to the PC. Which input is determined by a manual switch block. When the device is not connected it's corresponding input block brings up an error that says the device is not connected and the model does not run - even if I am trying to read from a file and do not need the external device to be connected. Is there a way for me to suppress this error? &#160;I want to maintain all of this in a single model and the only workaround i can see is to duplicate it and have one with input from file and the other with input from external device.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks for your help!&lt;br&gt;
&amp;gt; James&lt;br&gt;
&lt;br&gt;
Take a look at the help documentation for &quot;Configurable&lt;br&gt;
Subsystem&quot; (under the Simlink -&amp;gt; Ports &amp; Subsystems library). You&lt;br&gt;
should be able to create a masked block on which you select which&lt;br&gt;
version of your block you want to use (reading from file or from the&lt;br&gt;
device) and the configurable subsystem will select the appropriate&lt;br&gt;
subsystem that contains your choice. I realize that my explanation&lt;br&gt;
sucks, but read the help and examples for that block and it'll make&lt;br&gt;
more sense.&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
Ashish.</description>
    </item>
    <item>
      <pubDate>Thu, 05 Nov 2009 21:16:02 -0500</pubDate>
      <title>Re: Activate/deactivate, enable/disable Simulink Blocks</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265015#692531</link>
      <author>James Pau</author>
      <description>Praetorian &amp;lt;ashish.sadanandan@gmail.com&amp;gt; wrote in message &amp;lt;f55ae5e6-b0b3-4d9c-bda6-981bfd06b2ea@g31g2000vbr.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Nov 4, 2:50 pm, &quot;James Pau&quot; &amp;lt;the_manti...@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Hi there, I have tried looking online but there doesn't seem to be a solution or workaround for this that is readily available. What I want to do is disable or deactivate a simulink block that is causing an error when trying to run a simulation. This is because i have a model that can either take an input from a file or from an external device that is connected to the PC. Which input is determined by a manual switch block. When the device is not connected it's corresponding input block brings up an error that says the device is not connected and the model does not run - even if I am trying to read from a file and do not need the external device to be connected. Is there a way for me to suppress this error?  I want to maintain all of this in a single model and the only workaround i can see is to duplicate it and have one with input from file and the other with input from external &lt;br&gt;
device. &lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thanks for your help!&lt;br&gt;
&amp;gt; &amp;gt; James&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Take a look at the help documentation for &quot;Configurable&lt;br&gt;
&amp;gt; Subsystem&quot; (under the Simlink -&amp;gt; Ports &amp; Subsystems library). You&lt;br&gt;
&amp;gt; should be able to create a masked block on which you select which&lt;br&gt;
&amp;gt; version of your block you want to use (reading from file or from the&lt;br&gt;
&amp;gt; device) and the configurable subsystem will select the appropriate&lt;br&gt;
&amp;gt; subsystem that contains your choice. I realize that my explanation&lt;br&gt;
&amp;gt; sucks, but read the help and examples for that block and it'll make&lt;br&gt;
&amp;gt; more sense.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; HTH,&lt;br&gt;
&amp;gt; Ashish.&lt;br&gt;
&lt;br&gt;
Hi Ashish,&lt;br&gt;
&lt;br&gt;
I get you. Your explanation was fine and I managed to get it working. Thanks heaps!&lt;br&gt;
&lt;br&gt;
James</description>
    </item>
  </channel>
</rss>

