<?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>
        Hi again,&lt;br&gt;Actually the array returned by the line profile module requires a record size of 3 and an offset of 1 to return the Max Value anywhere in the array. It&apos;s fast and works great.&lt;br&gt;&lt;br&gt;An Ascending Sort will return the Min value in the array and Descending will return the Max value anywhere in the array.&lt;br&gt;&lt;br&gt;The first element in the reordered array will be the result.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=6146</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=6146</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Got It, Thank you STeven        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=6146</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=6146</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Edi,&lt;br&gt;&lt;br&gt;The two fields for the sort have to do with working in arrays that have multiple values. For example if you have an array of X and Y values the record size is 2 and the field offset would be 1 if you wanted to sort on X and 2 if you wanted to sort on Y. Since you can also have 3 or 4 or N numbers in an array that are associated like a record, that&apos;s the reason for those fields.&lt;br&gt;&lt;br&gt;In your case, a record size and offset of both 1 will work. It is NOT the size of the array. The module knows the length/size of the array from accessing that within RR.&lt;br&gt;&lt;br&gt;Alternatively, you can also find the max value by using a small VBScript that should execute quite quickly. Something like&lt;br&gt;&lt;br&gt;&apos;////////////&lt;br&gt;&lt;br&gt;line = GetArrayVariable(&quot;Line_Profile_Values&quot;)&lt;br&gt;max = 0&lt;br&gt;if isArray(line) then&lt;br&gt;&amp;nbsp;&amp;nbsp;for i = 0 to ubound(line)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if line(i) &amp;gt; max then max = line(i)&lt;br&gt;&amp;nbsp;&amp;nbsp;next&lt;br&gt;end if&lt;br&gt;&lt;br&gt;write &quot;The max is &quot; &amp; max&lt;br&gt;&lt;br&gt;&apos;///////////////&lt;br&gt;&lt;br&gt;running from within a VBScript module.&lt;br&gt;&lt;br&gt;STeven.&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=6146</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=6146</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>Max Value in a array</title>
        <description>
        I&apos;m using Line profile to determine when an item crosses any part of the line.&lt;br&gt;The maximum value returned used as a threshold works well (I need it fast) or I would just script it.&lt;br&gt;I need to know the maximum value returned by Line_Profile_Values.&lt;br&gt;I have tried Sort with some effect but it&apos;s not clear how to use it.&lt;br&gt;Also is there new documentation on the new sort module, there are 2 new fields (record size and field offset)&lt;br&gt;&lt;br&gt;Is there another way (other than scripting) to get a fast Max Value from an array?&lt;p&gt;&lt;a target=_blank href=&quot;http://www.roborealm.com/uploads/30291_1.jpg&quot;&gt;&lt;img border=1 src=&quot;http://www.roborealm.com/uploads/30291_thumb_1.jpg&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=6146</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=6146</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
