View unanswered posts | View active topics It is currently Sun Aug 31, 2014 1:02 am






Reply to topic  [ 3 posts ] 
program shuts down suddenly / no shut down delay possible 
Author Message
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post program shuts down suddenly / no shut down delay possible
often during the runtime, the nxt switches off without any explainable reason.
this happens both when running online (USB), and offline (stand alone).

At online operation, the debugger doesn't even show any hint why this happens.

the setting in the preferences is: shut down: never!

If I set the (program-specific) shut down delay time in my program by
Code:
nPowerDownDelayMinutes=1440; // shut down after 24 hours

I get an error:

**Error**:Variable 'nPowerDownDelayMinutes' is subsequently used as a procedure

what was wrong?

(I may have postet these questions before, don't know, but in that case, I can't find this, anyway. Sorry if it has been postst twice)

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Sat Aug 16, 2008 1:07 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Jan 31, 2007 3:39 am
Posts: 299
Location: San Diego, California. USA
Post Re: program shuts down suddenly / no shut down delay possible
I have notices this also, the NXT does shut down after awhile even though its on never. Make sure this is in the bug tracker B-)

Scott

_________________
Mmmm Legos B-)

My Robot Projects:
http://www.freewebs.com/robotprojects/


Sun Aug 17, 2008 2:32 pm
Profile WWW
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: program shuts down suddenly / no shut down delay possible
thx for your report!
Yes, I reported this.
But what is this about with the
Code:
nPowerDownDelayMinutes

how does this work right?

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Sun Aug 17, 2008 3:48 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.