To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.robolabOpen lugnet.robotics.rcx.robolab in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / ROBOLAB / 285
284  |  286
Subject: 
Re: Maximum Subroutine numbers?
Newsgroups: 
lugnet.robotics.rcx.robolab
Date: 
Sun, 28 Dec 2003 05:10:13 GMT
Reply-To: 
brainchild@IHATESPAMskyler.com
Viewed: 
10027 times
  
Following up my own post with more information:

I found in the Minnesota FIRST League's Software Training Manual the
statement: "Local subroutines are identified and called by number
(1-8)."  This suggests that unlike containers and most other indexed
objects in Robolab, subroutines don't use a zero-based index.  (Why
isn't this documented?!)

However, increasing all five subroutine numbers in my program did not
change the way it functioned (below).  Robolab does not produce an
error message; the program just gets to an infinite loop where an
event is supposed to get it out of the loop; after that I don't think
a nuclear blast could get it out of the loop (just kidding; the Run
button on the RCX will stop the program).

While I was dwelling on the fundamental interconnectedness of all
things on Sun, 28 Dec 2003 04:55:00 GMT, Don Stauffer
<BrainChild@Skyler.com> wrote:

Does RoboLab have a maximum subroutine number?  Also, what is the
maximum number of subroutines which can be defined?  Referring to real
subroutines, not SubVIs.

I have a program which defines 5 subroutines, numbered zero through 4.
It seems like when subroutine 2 runs, events monitoring stops, even
though the subroutine does not contain any event icons at all, of any
kind.  I couldn't duplicate this behavior in a simplified program, but
the subroutine definition contains only a call to a SubVI.  When I
replace the subroutine call with the SubVI icon, the problem
disappears.



Message has 1 Reply:
  Re: Maximum Subroutine numbers?
 
I don't use Robolab, but I can offer some insight into how the RCX firwmare operates with subroutines (and events) that may partially explain your problems. RCX firmware supports 8 (eight) subroutines per slot. Internally they are numbers 0 to 7. (...) (21 years ago, 28-Dec-03, to lugnet.robotics.rcx.robolab)

Message is in Reply To:
  Maximum Subroutine numbers?
 
Does RoboLab have a maximum subroutine number? Also, what is the maximum number of subroutines which can be defined? Referring to real subroutines, not SubVIs. I have a program which defines 5 subroutines, numbered zero through 4. It seems like when (...) (21 years ago, 28-Dec-03, to lugnet.robotics.rcx.robolab)

5 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR