Page 1 of 2

NXT run program on launch

Posted: 13 Oct 2011, 15:44
by shadowwatch
hello,
I have a question as the title says I wan't to let my NXT run a program on startup so when I turn the NXT on it runs a program right away.
Is this possible and how?

Re: NXT run program on launch

Posted: 13 Oct 2011, 17:14
by mattallen37
Name the program "! Startup" (minus the quotes).

Re: NXT run program on launch

Posted: 13 Oct 2011, 17:48
by shadowwatch
that doesn't work I made my programm in Lego Mindstorms programming (the program that comes with the nxt)

Re: NXT run program on launch

Posted: 13 Oct 2011, 20:01
by sidneys1
mattallen37 wrote:Name the program "! Startup" (minus the quotes).
Or more accurately:

Code: Select all

!Startup
Can't have the space ;)

Have a nice day,
~Sidneys1

Re: NXT run program on launch

Posted: 13 Oct 2011, 20:26
by mattallen37
No, I'm totally sure it has a space (just tested it). It was an NXC program, with the latest enhanced FW (shouldn't matter).

Edit: I just tried without the space, and it didn't work.

Re: NXT run program on launch

Posted: 13 Oct 2011, 20:54
by shadowwatch
I don't really get what I need to do?
Like I said I'm programming on the programm that comes with the NXT
so I wan't a programm like this to run on launch.
Image

Re: NXT run program on launch

Posted: 13 Oct 2011, 21:02
by mattallen37
It looks like you got it right, but you need to use a capital "S" (not "s").

Re: NXT run program on launch

Posted: 13 Oct 2011, 23:42
by savedcoder
What firmware does your NXT have? I think this only works with the NBC/NXC enhanced firmware.

Re: NXT run program on launch

Posted: 14 Oct 2011, 00:06
by mattallen37
I don't think so, at least I can't see why it would matter. No matter what lego FW you are using, it should play ! Startup as soon as you turn it on (normally a sound file).

Re: NXT run program on launch

Posted: 14 Oct 2011, 01:09
by savedcoder
mattallen37 wrote:I don't think so, at least I can't see why it would matter. No matter what lego FW you are using, it should play ! Startup as soon as you turn it on (normally a sound file).
Oohhhh, I just realized something: Everyone said "! Startup", but like you just pointed out, that's a sound file. (Actually "! Startup.rso".) And yeah, that is supported in the stock firmware.

However, shaddowwatch is trying to run a program on startup. That, I'm pretty sure, is supported only in the EFW, and the program must be named "! Autorun" (.rxe).

I should have realized that sooner...