To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 24457
24456  |  24458
Subject: 
Re: Prevent Auto-Shutdown
Newsgroups: 
lugnet.robotics
Date: 
Tue, 11 Oct 2005 20:19:40 GMT
Viewed: 
1419 times
  
Steve Hassenplug wrote:
On Tue, October 11, 2005 2:46 pm, Alexandre Lemaire wrote:

Hi there,

I've made a little robot that should run its program until powered down
manually, unfortunately, the brick seems to power itself down after a
certain amount of time.  Is there an instruction I can give with the default
lego environment that prevents this?


I'm pretty sure there's a Auto Shutdown time somewhere in the settings.  It's set to
15 minutes.  If you change it to zero, it should not shutdown.

Steve


Steve is right.  I forget what how the command is done with the RCX
software the comes with the RIS but in NQC one can use the
SetSleepTime() function.  Quoting from the help file:

SetSleepTime(minutes)
Set the sleep timeout the requested number of minutes (which must be a
constant). Specifying 0 minutes disables the sleep feature.

SetSleepTime(5); // sleep after 5 minutes

SetSleepTime(0) ; // disable sleep time

SleepNow()
Force the device to go to sleep. Only works if the sleep time is non-zero.

SleepNow(); // go to sleep


I have used this in my ball contraptions to keep them running hours on
end.  My wife hates the fact that I can disable its autoshutdown!



Message has 1 Reply:
  Re: Prevent Auto-Shutdown
 
(...) <snip> In the RIS software, there is a config panel, and the Auto Shutdown setting can be changed from there. As far as I know, you canot actually do it as part of the RCX code programs. Danny -- (URL) - Build Robots (19 years ago, 13-Oct-05, to lugnet.robotics)

Message is in Reply To:
  Re: Prevent Auto-Shutdown
 
(...) I'm pretty sure there's a Auto Shutdown time somewhere in the settings. It's set to 15 minutes. If you change it to zero, it should not shutdown. Steve (19 years ago, 11-Oct-05, to lugnet.robotics)

4 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