NXT run program on launch

News, rumors, and other broad discussion topics.
shadowwatch
Posts: 5
Joined: 13 Oct 2011, 15:42

NXT run program on launch

Post 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?
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: NXT run program on launch

Post by mattallen37 »

Name the program "! Startup" (minus the quotes).
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
shadowwatch
Posts: 5
Joined: 13 Oct 2011, 15:42

Re: NXT run program on launch

Post by shadowwatch »

that doesn't work I made my programm in Lego Mindstorms programming (the program that comes with the nxt)
sidneys1
Posts: 141
Joined: 01 Oct 2010, 14:38
Location: Pennsylvania - The United States of America
Contact:

Re: NXT run program on launch

Post 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
My Mindstorms website: http://sidneys1.com
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: NXT run program on launch

Post 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.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
shadowwatch
Posts: 5
Joined: 13 Oct 2011, 15:42

Re: NXT run program on launch

Post 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
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: NXT run program on launch

Post by mattallen37 »

It looks like you got it right, but you need to use a capital "S" (not "s").
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
savedcoder
Posts: 32
Joined: 08 Mar 2011, 17:23
Location: /dev/null
Contact:

Re: NXT run program on launch

Post by savedcoder »

What firmware does your NXT have? I think this only works with the NBC/NXC enhanced firmware.
To God be the glory, great things He has done;
So loved He the world that He gave us His Son,
Who yielded His life an atonement for sin,
And opened the life gate that all may go in.
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: NXT run program on launch

Post 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).
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
savedcoder
Posts: 32
Joined: 08 Mar 2011, 17:23
Location: /dev/null
Contact:

Re: NXT run program on launch

Post 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...
To God be the glory, great things He has done;
So loved He the world that He gave us His Son,
Who yielded His life an atonement for sin,
And opened the life gate that all may go in.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest