Subject:
|
Problems with datalog
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Fri, 25 Aug 2000 04:45:49 GMT
|
Viewed:
|
1728 times
|
| |
| |
I wrote a simple program that adds any messages received to the datalog. It
also beeps after it logs each message so that I know it is working.
The CreateDatalog() command doesn't seem to be working. It seems pretty
simple. What am I missing?
The datalog is not created when I start the program. If I create the
datalog using RCXcc before running the program then it adds the messages to
the datalog correctly.
Here is the sample code:
// Written by RJS August 24, 2000;
// Test datalog features;
task main()
{
// Create a datalog to store 10 points
CreateDatalog(10);
while(true)
{
// wait until a message is received;
until(Message() > 0);
// add the last received message to the datalog;
AddToDatalog(Message());
// Clear the last received message;
ClearMessage();
// Make a sound to let me know that it logged a message;
PlaySound(SOUND_DOUBLE_BEEP);
}
}
--
http://members.home.net/rjschave
|
|
Message has 1 Reply: | | Re: Problems with datalog
|
| (...) What version of the firmware are you using (what's the filename of the firmware file)? I think some versions of early 2.0 firmware didn't support creating the datalog from within a program. Also, what version of NQC are you using...I don't (...) (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
|
|
|
|