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 / 732
731  |  733
Subject: 
Re: Problems with datalog
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Fri, 25 Aug 2000 17:27:00 GMT
Viewed: 
1589 times
  
Ryan J Schave wrote:


Looking at your NQC program, you seem to be logging the IR message buffer
directly, but that's not possible.

-- Michael

It is possible.  If the datalog is created from outside the program (i.e.
RCXcc) then my program correctly logs the IR messages.  The problem I'm
having is that I cannot get the RCX to create the datalog from within the
program.

From Dave's documentation:

Values can then be added to the datalog using AddToDatalog(value). When the
datalog is uploaded to a computer it will show both the value itself and the
source of the value (timer, variable, etc). The datalog directly supports
the following data sources: timers, sensor values, variables, and the system
watch. Other data types (such as a constant or random number) may also be
logged, but in this case NQC will first move the value into a variable and
then log the variable. The values will still be captured faithfully in the
datalog, but the sources of the data may be a bit misleading.


Have you tried putting in a Wait command after creating the Datalog and before
you start using it? It must take a few milliseconds to set up.

Just my .001 cents after taxes...

Dean
--
Coin-Op's For Sale!: http://www.akasa.bc.ca/tfm/coin-op.html
Dean's Lego Workshop: http://www.akasa.bc.ca/tfm/lego_wr.html
Vancouver Lego Club: http://www.akasa.bc.ca/vlc



Message has 1 Reply:
  Problems Solved(WAS Re: Problems with datalog)
 
(...) before (...) I just tried using the Wait() command for up to 5 seconds. Still didn't work. I remember reading that the Vision Command required the new firmware. I assumed that VC d/l'd the new firmware automatically. I didn't remember waiting (...) (24 years ago, 25-Aug-00, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Re: Problems with datalog
 
(...) It is possible. If the datalog is created from outside the program (i.e. RCXcc) then my program correctly logs the IR messages. The problem I'm having is that I cannot get the RCX to create the datalog from within the program. From Dave's (...) (24 years ago, 25-Aug-00, to lugnet.robotics.rcx.nqc)

9 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