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 / 25896
25895  |  25897
Subject: 
Re: NXT interface
Newsgroups: 
lugnet.robotics
Date: 
Fri, 5 May 2006 21:54:44 GMT
Viewed: 
2513 times
  
In lugnet.robotics, John Hansen wrote:

Using my BrickTool utility to list the files on my NXT you get this output:

C:\winapps\projects\BricxCC>bricktool /BT /COM=COM4 /Target=7 -listfiles
rooster_simple.rxe=9216
Bono8.rxe=17210
a6.rxe=14776
Recorder.rxe=8668
Raw Count2.rxe=3600
LineFollower4.rxe=10488
Remote-1.rxe=5254
fileio.rxe=3444
ScreenSaver_bug.rxe=384
ScreenSaver_nob.rxe=318
DivTest.rxe=240
text_try.rxe=260
whileloop.rxe=162
2tones.rxe=198
iomap_freemem.rxe=480

The first eight files are written in NXTGL using the LEGO Mindstorms NXT
software.  The last seven files are writtin in NBC using BricxCC to compile and
download the programs.  Admittedly, the NBC programs are all trivial programs
But you can see plainly see the order of magnitude difference in executable file
size.

Sounds great! Are you able to determine how much memory a program takes up while
it's running? And how much memory is free?

Here's a partial NXT menu system diagram.

NXT Program
|- Info screen

Info Screen (followed by pick move for slot 1)
|- Fwd 5 - Fwd - Turn Right 2 - Turn Right - Back Right 2 - Back Right - Tone 1
- Tone 2 - Back Left 2 - Back Left - Turn Left - Turn Left 2 - Empty - Backward
- Backward 5

Slot 2
|- Empty - Wait 2 - Wait 5 - Wait 10 - Object - Sound - Light - Dark - Touch

Slot 3 (same as slot 1)

Slot 4 (same as slot 2)

Slot 5
|- Stop - Loop

Hmmm the purpose of these slots are one thing thats not immediately obvious (to
my old brain anyway), can you explain more about what they are and how they are
used?

ROSCO



Message has 2 Replies:
  Re: NXT interface
 
(...) This is the on-screen programming system. It's pretty rudimentary, but it lets you build very simple programs with only your NXT (no computer needed). Slots 1 & 3 let you 'do' something, slots 2 & 4 essentially control how long that action (...) (19 years ago, 5-May-06, to lugnet.robotics)
  Re: NXT interface
 
(...) The memory used by a program while it is running is not the same memory used for storing the program (flash). There isn't any way that I know of at this point to find out how much memory a program uses while it is running or how much of (...) (19 years ago, 6-May-06, to lugnet.robotics)

Message is in Reply To:
  Re: NXT interface
 
(...) In my experience, non-trivial programs written in NXTGL will use at least 10kb. Using my BrickTool utility to list the files on my NXT you get this output: C:\winapps\projects\...>bricktool /BT /COM=COM4 /Target=7 -listfiles (...) (19 years ago, 5-May-06, to lugnet.robotics)

6 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
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
2 hours ago
Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR