Go to Post On a side note... "Think outside the robot." - I kinda like that. I'll have to use that in a meeting someday.... - Not2B [more]
Home
Go Back   Chief Delphi > Technical > Control System
Team 51   CD-Events   CD-Media   CD-Swap   CD-Spy   FRC-Spy   Unsung FIRST Heroes   WFA
portal register members calendar search Today's Posts Mark Forums Read FAQ rules
VEXpro
The Chief Delphi Forums are sponsored by Innovation First International, Inc.
Kettering University
ADVERTISEMENT

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-16-2012, 08:34 AM
iambujo iambujo is offline
Mentor
FRC #2729 (Storm)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: NJ
Posts: 67
iambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to all
Alternate viewer for Driver Station Logs (dslog)?

Hello - we are analyzing our ds logs due to lag issues seen at our first competition. I am wondering if the log structure/content is documented any where or if a portable simplified (windows or Linux) viewer has been identified. Ideally I'd like to view it in a way that I can create my own plots, crunch filter, etc without needed all the NI software installed. If methods exist already that would help!

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 03-16-2012, 07:34 PM
Greg McKaskle Greg McKaskle is offline
Registered User
no team (Team NI)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 3,372
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Alternate viewer for Driver Station Logs (dslog)?

The DS log file is binary (for compactness and has a simple header of a 32 bit version number that is always zero at this point and a (64,64) bit timestamp with an epoch of 12:00:00.000 AM 1/1/1904 (Universal Time). It is a 64 bit int of seconds since ... and then 64 bits of fractional seconds.

The rest of the file is a sequence of tuples (single, single, single, u8, i8) and I believe they are packed with no alignment. The attached code build the plots and the legend shows the plots being built.

The only complicated element that the last six plots packed into the u8. Each bit selects between Nan (which lifts the graph pen), and a value plotted on the scale. It is basically a bitfield of those six bits representing what the DS told the robot to run and what the robot ran during that time slice.

I think the last element to add is that the byte ordering is big endian.

Let me know if I left anything out or something doesn't seem right.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2012-03-16 at 7.12.43 PM.png
Views:	19
Size:	16.9 KB
ID:	12332  Click image for larger version

Name:	Screen Shot 2012-03-16 at 7.15.00 PM.png
Views:	16
Size:	10.6 KB
ID:	12333  
Reply With Quote
  #3   Spotlight this post!  
Unread 03-16-2012, 08:43 PM
iambujo iambujo is offline
Mentor
FRC #2729 (Storm)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: NJ
Posts: 67
iambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to all
Re: Alternate viewer for Driver Station Logs (dslog)?

Wow, thanks for the reply Greg! I am not familiar with Labview so the image is a little 'greek' to me, but I am sure I can decipher it. If I have some free time (most likely post competition season at this point) I may write a little decoder app to expand the data and make it more portable for things like xplot and excel. Not sure if it will be useful, but I like a good challenge.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:51 PM.

The Chief Delphi Forums are sponsored by Innovation First, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © Delphi and Pontiac Central High School