View unanswered posts | View active topics It is currently Sun May 20, 2018 12:07 pm






Reply to topic  [ 2 posts ] 
Datalogging: Wrong filename datalog-<index>.txt.txt 
Author Message
Rookie

Joined: Mon Jan 11, 2016 4:38 pm
Posts: 1
Post Datalogging: Wrong filename datalog-<index>.txt.txt
RobotC Version 4.52, F/W 10.52, build date 8 DEC 2015.

With the following file i have tried to test the new datalogging features:

task main()
{
// The first argument is a datalog index number.
// The filename will be saved in the rc-data folder as
// datalog-<INDEX>.txt
// The format is a comma separated value file.
// The 2nd argument is the number of columns you wish to have in the file
// The 3rd argument specifies if you wish to append to the datalog, if it
// exists.
if (!datalogOpen(0, 4, false))
{
playSound(soundException);
displayTextLine(4, "Unable to open datalog");
writeDebugStreamLine("Unable to open datalog");
sleep(5000);
stopAllTasks();
}

// You can add an entry at the specified column number
for (int i = 0;i < 2000; i++)
{
datalogAddChar(0, 1 + i);
datalogAddShort(1, 9000 + i);
datalogAddLong(2, 2388738 + i);
datalogAddFloat(3, 678.98 / (i + 1));
}

// Make sure you close the file properly
datalogClose();
}

After running the code a new file in subfolder rc-data with the name datalog-0.txt.txt ! has been created.
With the robot file utility i have tried to upload this file. This performs the following message windos entries:
244.707 Refreshed EV3 file list for directory "/home/root/lms2012/prjs/rc-data" finding 3 files
331.414 Sent: opFILE::OPEN_READ("/home/root/lms2012/prjs/rc-data/datalog-0.txt.txt",GV0,GV4); opFILE::CLOSE(GV0); opOBJECT_END():

Hex (62 bytes): 00 08 00 C0 01 84 2F 68 6F 6D 65 2F 72 6F 6F 74 2F 6C 6D 73 32 30 31 32 2F 70 72 6A 73 2F 72 63 2D 64 61 74 61 2F 64 61 74 61 6C 6F 67 2D 30 2E 74 78 74 2E 74 78 74 00 60 64 C0 07 60 0A

Err: Casper error: Unknown type 0(00) for Direct command reply.

Reply:
331.415 Failed to get size of file '/home/root/lms2012/prjs/rc-data/datalog-0.txt.txt'

After this stet the IDE hangs. No further download is possible.


Mon Jan 11, 2016 4:54 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: Datalogging: Wrong filename datalog-<index>.txt.txt
Hi there,

I will investigate. We did fix a few issues with our internal builds, I will check if this still occurs there.

Thanks for reporting it!

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Tue Jan 12, 2016 1:23 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.