NXT screen dump

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: roger, imaqine, 99jonathan

Aswin
leJOS Team Member
Posts: 227
Joined: Tue Apr 26, 2011 9:18 pm
Location: Netherlands
Contact:

NXT screen dump

Postby Aswin » Sat Nov 26, 2011 1:45 pm

Does Lejos provide tool to get a screen dump from the NXT?
I tried the NXJconsoleViewer, but it couldn't connect to the NXT.
My NXT blog: http://nxttime.wordpress.com/

skoehler
leJOS Team Member
Posts: 1533
Joined: Thu Oct 30, 2008 4:54 pm

Re: NXT screen dump

Postby skoehler » Sat Nov 26, 2011 2:30 pm

Try the remote debug monitor (option -gr of the linker). Then the console viewer should connect and should show the display as well as all text sent to System.out/err.

Trouble is, that NXT is not ready for connections by the consoleviewer all the time. You need to start some kind of "server" on the NXT. This is done automatically by the "-gr" option and you can probably start the server manually.

Aswin
leJOS Team Member
Posts: 227
Joined: Tue Apr 26, 2011 9:18 pm
Location: Netherlands
Contact:

Re: NXT screen dump

Postby Aswin » Sat Nov 26, 2011 4:22 pm

Call me ignorant. But how can I set the linker options? I'm using eclipse.
Also, do I need a to start the program and connect in any particular order.
My NXT blog: http://nxttime.wordpress.com/

skoehler
leJOS Team Member
Posts: 1533
Joined: Thu Oct 30, 2008 4:54 pm

Re: NXT screen dump

Postby skoehler » Sat Nov 26, 2011 4:26 pm

Aswin wrote:Call me ignorant. But how can I set the linker options? I'm using eclipse.
Also, do I need a to start the program and connect in any particular order.

In the menu next to the green play button select "Run Configurations ...", select the run configuration that you want to change, and enable the remote debug monitor

Aswin
leJOS Team Member
Posts: 227
Joined: Tue Apr 26, 2011 9:18 pm
Location: Netherlands
Contact:

Re: NXT screen dump

Postby Aswin » Sun Nov 27, 2011 11:09 pm

If that is all it doesn't work for me. The viewer connects, but the is no screen viewer update. Should I issue any command on the NXT? Should I close Eclipse to free the USB port?
My NXT blog: http://nxttime.wordpress.com/

User avatar
gloomyandy
leJOS Team Member
Posts: 4627
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: NXT screen dump

Postby gloomyandy » Mon Nov 28, 2011 12:45 am

Works fine for me. Are you sure you are running the debug configuration? If so the NXT will display "Remote Console.." then when you run the command nxjconsoleviewer you need to ensure the show remote LCD screen is checked and then hit connect. The display on the NXT should change to "Console open" and your program should begin to run with the display in the console viewer window being updated.

Andy

Aswin
leJOS Team Member
Posts: 227
Joined: Tue Apr 26, 2011 9:18 pm
Location: Netherlands
Contact:

Re: NXT screen dump

Postby Aswin » Mon Nov 28, 2011 6:15 am

I think I Didn't start debug configuration because I didn't see "remote console" on the NXT screen. I'll dive into this tonight.
Thanks
My NXT blog: http://nxttime.wordpress.com/

User avatar
gloomyandy
leJOS Team Member
Posts: 4627
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: NXT screen dump

Postby gloomyandy » Mon Nov 28, 2011 7:48 am

Hi Aswin,
When you run the program from Eclipse you need to "debug" it by using the little "bug" icon rather than the "play" icon (and you need to have set the debug options in the project profile as explained earlier...).

Andy

Aswin
leJOS Team Member
Posts: 227
Joined: Tue Apr 26, 2011 9:18 pm
Location: Netherlands
Contact:

Re: NXT screen dump

Postby Aswin » Wed Nov 30, 2011 11:40 am

The debug button did the trick. Thanks
My NXT blog: http://nxttime.wordpress.com/


Return to “NXJ Software”

Who is online

Users browsing this forum: No registered users and 2 guests