<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">
<channel>
    <title>RoboRealm Forum</title>
    <link>http://www.RoboRealm.com/</link>
    <description>The newest forum threads.</description>
    <lastBuildDate>Tue, 30 Nov 1999 00:11:00 EST</lastBuildDate>
    <language>en-us</language>
    <copyright>Copyright: (C) RoboRealm, http://www.RoboRealm.com/</copyright>
    <docs>http://www.RoboRealm.com/</docs>

    <item>
        <title>No Title</title>
        <description>
        We updated the SetTimedVariable documentation with a bit more description. It is essentially a way around using Sleep which should not be used as that shuts down all processing. Instead, think of using states where nothing happens to wait for something to complete. That&apos;s where the SetTimedVariable comes into play. Instead of &lt;br&gt;&lt;br&gt;SetVariable(&quot;motor&quot;, 100)&lt;br&gt;Sleep(1000)&lt;br&gt;SetVariable(&quot;motor&quot;, 0)&lt;br&gt;&lt;br&gt;use&lt;br&gt;&lt;br&gt;SetVariable(&quot;motor&quot;, 100)&lt;br&gt;SetTimedVariable(&quot;motor&quot;, 0, 1000)&lt;br&gt;&lt;br&gt;but you CANNOT call that same function again and again otherwise it will reset the timer. So when you do that, you need to jump into another state that does nothing. So the actual code is something like what follows. For example, to move the left motor for 1 second, then the right motor for 1 second and then stop for one second the code would look like:&lt;br&gt;&lt;br&gt;select case GetVariable(&quot;state&quot;) &lt;br&gt;&lt;br&gt;case 0: &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;left_motor&quot;, 100&lt;br&gt;&amp;nbsp;&amp;nbsp;SetTimedVariable &quot;state&quot;,2,1000 &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;state&quot;, 1 &lt;br&gt;case 1: &lt;br&gt;&amp;nbsp;&amp;nbsp;&apos; do nothing, this is the wait state, just let the motor values do its thing ... all vars are set&lt;br&gt;case 2: &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;left_motor&quot;, 0&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;right_motor&quot;, 100&lt;br&gt;&amp;nbsp;&amp;nbsp;SetTimedVariable &quot;state&quot;,3,1000 &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;state&quot;, 1 &lt;br&gt;case 3:&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;left_motor&quot;, 0&lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;right_motor&quot;, 0&lt;br&gt;&amp;nbsp;&amp;nbsp;SetTimedVariable &quot;state&quot;,0,1000 &lt;br&gt;&amp;nbsp;&amp;nbsp;SetVariable &quot;state&quot;, 1 &lt;br&gt;end select&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4840</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4840</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Please try the following code:&lt;br&gt;&lt;br&gt;select case GetVariable(&quot;state&quot;) &lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case 0: &lt;br&gt;write &quot;0&quot;&lt;br&gt;period = 2000 &lt;br&gt;SetTimedVariable &quot;state&quot;,2,period &lt;br&gt;SetVariable &quot;state&quot;, 1&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case 1:&lt;br&gt;write &quot;1&quot; &lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case 2:&lt;br&gt;write &quot;2&quot;&lt;br&gt;period = 2000 &lt;br&gt;SetTimedVariable &quot;state&quot;,4,period &lt;br&gt;SetVariable &quot;state&quot;, 3&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case 3:&lt;br&gt;write &quot;3&quot; &lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case 4: &lt;br&gt;write &quot;4&quot;&lt;br&gt;period = 2000 &lt;br&gt;SetTimedVariable &quot;state&quot;,6,period &lt;br&gt;SetVariable &quot;state&quot;, 5&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case 5:&lt;br&gt;write &quot;5&quot;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case 6: &lt;br&gt;write &quot;6&quot;&lt;br&gt;period = 2000 &lt;br&gt;SetTimedVariable &quot;state&quot;,8,period &lt;br&gt;SetVariable &quot;state&quot;, 7&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case 7:&lt;br&gt;write &quot;7&quot;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case 8:&lt;br&gt;write &quot;8&quot;&lt;br&gt;SetVariable &quot;state&quot;, 0&lt;br&gt;&lt;br&gt;end select&lt;br&gt;&lt;br&gt;You should see 1,3,5,7,1,3,5,7... which means you can delete &amp;lt;write &quot;0&quot;,&quot;2&quot;,&quot;4&quot;...&amp;gt; but you can modify &amp;lt;write &quot;1&quot;,&quot;3&quot;,&quot;5&quot;,...&amp;gt; to do the things you want (e.g. set motor values).         </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4840</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4840</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>SetTimedVariable</title>
        <description>
        I would want to understand better this function, also with a practical example, because I believe that it is very useful for different purposes.&lt;br&gt;The &quot;SetTimedVariable&quot; a good explanation is not found, even in the guide online.&lt;br&gt;&lt;br&gt;I have tried to copy this script in the form VBScript and to insert it in the pipeline, but I have not gotten some result.&lt;br&gt;In the documentation of VBScript_Plugin is written there: &quot;...Note that usage of step and setting it to 1 and 3 which are dummy steps where nothing is done... &quot; , then, which are the steps to insert ? &lt;br&gt;&lt;br&gt;If an explanation could be had as soon as more deepened, it would be what pleasant.&lt;br&gt;&lt;br&gt;Thanks.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4840</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4840</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
