To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 1629
1628  |  1630
Subject: 
Re: Is the program running?
Newsgroups: 
lugnet.robotics.rcx
Date: 
Sun, 10 Mar 2002 00:05:10 GMT
Reply-To: 
Dick Swan <dickswa@sbcglobal.netANTISPAM>
Viewed: 
2969 times
  
"Barney Hilken" <barneyhilken@mac.com> wrote in message news:Gsq8J6.Ds9@lugnet.com...
Does anyone know how to poll the RCX (with standard firmware 2.0) to find
out whether a program has terminated yet? If you can see the LCD, you can
see whether the little man is still moving, but can you check this from a
host computer? The description of RCX commands in Lego SDK 2.0 Beta doesn't
seem to include anything to do this. Is it possible?



There is no direct way to interrogate the RCX with standard firmware.

However, it could be simply handled programmatically. Use a global variable to set a flag when program starts / stops and then poll
this flag.

Note that the 'definition' of a program running is that any task is running and not just task 0 which is the primary task.



Message is in Reply To:
  Is the program running?
 
Does anyone know how to poll the RCX (with standard firmware 2.0) to find out whether a program has terminated yet? If you can see the LCD, you can see whether the little man is still moving, but can you check this from a host computer? The (...) (23 years ago, 9-Mar-02, to lugnet.robotics.rcx)

2 Messages in This Thread:

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

Custom Search

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