ROBOTC.net forums
http://www.robotc.net/forums/

Datalogging: Wrong filename datalog-<index>.txt.txt
http://www.robotc.net/forums/viewtopic.php?f=63&t=13103
Page 1 of 1

Author:  stefan.hofmann [ Mon Jan 11, 2016 4:54 pm ]
Post subject:  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.

Author:  mightor [ Tue Jan 12, 2016 1:23 am ]
Post subject:  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

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/