<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263682</link>
    <title>MATLAB Central Newsreader - Simple simulink problem</title>
    <description>Feed for thread: Simple simulink problem</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, 21 Oct 2009 06:19:02 -0400</pubDate>
      <title>Simple simulink problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263682#688559</link>
      <author>Ashwini Deshpande</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
In simulink i have defined a array as follows using constant block:&lt;br&gt;
a=[1 0 1 1 1 0 0 0 1];&lt;br&gt;
&lt;br&gt;
Now i want to read the elements of array 'a' one by one, i mean at every sample time one element in ascending or descending order.&lt;br&gt;
&lt;br&gt;
How do i do this ?? &lt;br&gt;
&lt;br&gt;
In otherwords if scope block is connected to the arrary, i suppose to see a binary signal of zeros and ones there.&lt;br&gt;
&lt;br&gt;
Thanks !&lt;br&gt;
Ashwini </description>
    </item>
    <item>
      <pubDate>Wed, 21 Oct 2009 11:39:29 -0400</pubDate>
      <title>Re: Simple simulink problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263682#688635</link>
      <author>Arnaud Miege</author>
      <description>&lt;br&gt;
&quot;Ashwini Deshpande&quot; &amp;lt;vd.ashwini@mathworks.com&amp;gt; wrote in message &lt;br&gt;
news:hbm94m$9bn$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In simulink i have defined a array as follows using constant block:&lt;br&gt;
&amp;gt; a=[1 0 1 1 1 0 0 0 1];&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Now i want to read the elements of array 'a' one by one, i mean at every &lt;br&gt;
&amp;gt; sample time one element in ascending or descending order.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; How do i do this ??&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In otherwords if scope block is connected to the arrary, i suppose to see &lt;br&gt;
&amp;gt; a binary signal of zeros and ones there.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks !&lt;br&gt;
&amp;gt; Ashwini&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
Don't use the constant block, use the repeating sequence block:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/repeatingsequence.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/repeatingsequence.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
&lt;br&gt;
Arnaud </description>
    </item>
    <item>
      <pubDate>Wed, 21 Oct 2009 13:02:20 -0400</pubDate>
      <title>Re: Simple simulink problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263682#688656</link>
      <author>Ashwini Deshpande</author>
      <description>&amp;nbsp;&lt;br&gt;
&amp;gt; Don't use the constant block, use the repeating sequence block:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/repeatingsequence.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/repeatingsequence.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; HTH,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Arnaud &lt;br&gt;
&amp;gt; &lt;br&gt;
Thanks ,&lt;br&gt;
My requirement something similar to the repeating sequence block, there i want to have the sequence of zeros and ones, but it expects that the sequence should be in ascending order.&lt;br&gt;
what do i do??&lt;br&gt;
Ashwini</description>
    </item>
    <item>
      <pubDate>Wed, 21 Oct 2009 14:12:47 -0400</pubDate>
      <title>Re: Simple simulink problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263682#688687</link>
      <author>Arnaud Miege</author>
      <description>&lt;br&gt;
&quot;Ashwini Deshpande&quot; &amp;lt;vd.ashwini@mathworks.com&amp;gt; wrote in message &lt;br&gt;
news:hbn0os$a6e$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Don't use the constant block, use the repeating sequence block:&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/repeatingsequence.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/repeatingsequence.html&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; HTH,&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Arnaud&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; Thanks ,&lt;br&gt;
&amp;gt; My requirement something similar to the repeating sequence block, there i &lt;br&gt;
&amp;gt; want to have the sequence of zeros and ones, but it expects that the &lt;br&gt;
&amp;gt; sequence should be in ascending order.&lt;br&gt;
&amp;gt; what do i do??&lt;br&gt;
&amp;gt; Ashwini&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
You are right, I was a bit too hasty. Use the repeating sequence stair block &lt;br&gt;
instead:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/repeatingsequencestair.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/repeatingsequencestair.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
&lt;br&gt;
Arnaud </description>
    </item>
    <item>
      <pubDate>Thu, 22 Oct 2009 04:22:03 -0400</pubDate>
      <title>Re: Simple simulink problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263682#688865</link>
      <author>Ashwini Deshpande</author>
      <description>&amp;gt; &lt;br&gt;
&amp;gt; You are right, I was a bit too hasty. Use the repeating sequence stair block &lt;br&gt;
&amp;gt; instead:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/repeatingsequencestair.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/repeatingsequencestair.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; HTH,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Arnaud &lt;br&gt;
&amp;gt; &lt;br&gt;
Thank you very much...&lt;br&gt;
Got the solution .... :-))&lt;br&gt;
&lt;br&gt;
Ashwini</description>
    </item>
  </channel>
</rss>

