To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1529
1528  |  1530
Subject: 
Re: write files
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Tue, 30 Sep 2003 14:07:05 GMT
Viewed: 
5236 times
  
In lugnet.robotics.rcx.nqc, Markus Wegmann wrote:
Hello

I only want to ask if it is possible to write (extern) text files by NQC.

If i check a sensor i want to write the results in a file... is that
possible by NQC or wich programming language is better (and easyier)
for this project?

THX

NQC programs run on the RCX which has no disk drive to write to, hence no file
system or commands to do so.  You might want to look at the Data Log feature of
the RCX, which allows you to save data points (up to about 6,000 of them) such
as sensor readings or variable values into a special memory area in the RCX.
The contents of the Data Log can be uploaded to the PC and saved into a text
file after the fact.  NQC has native commands to support Data Logging.

I had written a small program at one point to upload the RCX Data Log, and if I
can find it and dust it off I will make it available on my web site.  (Contact
me by e-mail if you are desperate to get this program ahead of my lazy
schedule.)  I believe that other tools exist for uploading the Data Log, but I
have not used them and cannot speak for them.

Hope this helps!

- Chris.

p.s.  I am still getting lots of "Your message was not accepted.  Response from
the news server: 0" messages when I try to post, although it eventually works
after about 40 or 50 tries.  <sigh>  Do you remember when being a "hacker" was a
Good Thing?



Message has 3 Replies:
  Re: write files
 
(...) As far as I know, Brickx command centre has feature like this. Try to look at it's www page. There's also nice tutorial written by Mark Overmars - it explains how to use datalog. (...) Me too, I made a new account and it seems it's okay now.. (...) (21 years ago, 30-Sep-03, to lugnet.robotics.rcx.nqc)
  Re: write files
 
(...) Surely you've used BricxCC? I thought everyone has used it... :-) A simple, yet powerful, tool you can download is my RCXTool program. (URL) posted about it a while back. (URL) can use RCXTool to upload your datalog via the following (...) (21 years ago, 30-Sep-03, to lugnet.robotics.rcx.nqc)
  Re: write files
 
(...) If you just want to transfer the datalog and put it in a text file you can use the nqc command: nqc -datalog This will upload the datalog and print it to stdout. Use your shell I/O redirection to put it in a file... nqc -datalog >my.log (...) (21 years ago, 1-Oct-03, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  write files
 
Hello I only want to ask if it is possible to write (extern) text files by NQC. If i check a sensor i want to write the results in a file... is that possible by NQC or wich programming language is better (and easyier) for this project? THX (21 years ago, 30-Sep-03, to lugnet.robotics.rcx.nqc)

8 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
    

Custom Search

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