<?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>
        Thanks        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4813</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4813</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Martin,&lt;br&gt;&lt;br&gt;You simply place the function in a VBscript module&lt;br&gt;located before the serial module.&amp;nbsp;&amp;nbsp;The VBscript&lt;br&gt;concatenates the bytes into a string, which is&lt;br&gt;placed into the global variable space with the&lt;br&gt;SetVariable function.&amp;nbsp;&amp;nbsp;Within the serial module&lt;br&gt;send the contents of that variable.&lt;br&gt;For example:&lt;br&gt;&lt;br&gt;In the VBscript module:&lt;br&gt;SerData = B1 &amp; B2&lt;br&gt;SetVariable &quot;SerData&quot;, SerData&lt;br&gt;&lt;br&gt;In the Serial module utilize SerData as your&lt;br&gt;send sequence:&lt;br&gt;[SerData]&lt;br&gt;&lt;br&gt;Hope this covers it&amp;nbsp;&amp;nbsp;:)&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Carl        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4813</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4813</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Carl.&lt;br&gt;Lets assume that the variable [COG_X] has the value of 11001000 (400 dec).&lt;br&gt;&lt;br&gt;I do:&lt;br&gt;&lt;br&gt;COG_X_lo = COG_X &amp; 255 //&amp;nbsp;&amp;nbsp;result 11001000&lt;br&gt;COG_X_hi= COG_X/ 256&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;result 00000001&lt;br&gt;&lt;br&gt;&lt;br&gt;Now, the big money thing is: how do I put a function like this into the serial module? &lt;br&gt;&amp;nbsp;&amp;nbsp;&lt;br&gt;Cheers Martin&lt;br&gt;&lt;br&gt;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4813</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4813</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Martin,&lt;br&gt;&lt;br&gt;The problem is that a single byte can only&lt;br&gt;contain values up to 255.&amp;nbsp;&amp;nbsp;In order to send&lt;br&gt;larger numbers you need to break the number&lt;br&gt;into a pair of bytes.&amp;nbsp;&amp;nbsp;One means of doing&lt;br&gt;this is:&lt;br&gt;&lt;br&gt;B1 = Cbyte(YourNumber And 255)&lt;br&gt;B2 = Cbyte(Int(YourNumber/256))&lt;br&gt;&lt;br&gt;The program you&apos;re sending this data to will&lt;br&gt;need to reassemble the original number in a&lt;br&gt;similar fashion, such as:&lt;br&gt;&lt;br&gt;YourNumber = B2 * 256 + B1&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Carl        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4813</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4813</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>Center of Gravity to Serial</title>
        <description>
        I use the &quot;Center of Gravity&quot; module to output the results to the Serial Com-Port.&lt;br&gt;This works fine only the data wraps to 0 if the result is &amp;gt; 255. &lt;br&gt;So, is there a way&amp;nbsp;&amp;nbsp;to send a number bigger than 255? With a screen resolution of 640*480 the most right pint on the X axis is&amp;nbsp;&amp;nbsp;a number of aprox 600.&lt;br&gt;Thanks Martin&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4813</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4813</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
