![]() |
Reading log files of current
We're able to monitor PDP current and log it (have 2015 DS, roboRIO and PDP with latest firmware (Rev 1.4 from http://crosstheroadelectronics.com/control_system.html) with CAN connected between them) and we see the log file created when the robot is disabled following an enabled period. This log file is in C:\Users\Public\Documents\FRC\Log Files with the extension .pdplog. Problem is, we're having trouble finding a way to read the file? Is there a reader we need to download?
|
Re: Reading log files of current
The reader for the .pdplog hasn't been released yet.
|
Re: Reading log files of current
Quote:
|
Re: Reading log files of current
Quote:
Well that's a bummer. I thought the ability to log current was one of the big marketing points about this new roboRIO and PDP? [quote]If you instantiate a PowerDistributionPanel object ... you can access the current of individual channels as well as the total current in real time. /QUOTE] We use labview - our programmer's able to display the individual currents in real time - didn't know we could display total current? I'd considered asking him to sum all the individual together or something like that and display the sum but if there's an easier way that's inherent to labview - can anyone advise on that? Looking at instantaneous current values is better than nothing, but it'll really be nice to be able to look at a log after the fact. Any advice? |
Re: Reading log files of current
You might consider saving the current values to your own log file every couple second or milliseconds. Probably best to use a csv or tab delimited format, then you could put it into a spreadsheet program and possibly graph the data there.
|
Re: Reading log files of current
have your programmers read the current during the match and write a file on the roboRIO?
|
Re: Reading log files of current
Quote:
|
Re: Reading log files of current
Quote:
|
Re: Reading log files of current
Quote:
|
Re: Reading log files of current
Quote:
Here's a link to one of ours https://drive.google.com/file/d/0Bzf...ew?usp=sharing Can logging be disabled? It's quite useless as it is now, and we end up in a bad state if we enable and disable quickly, which I believe is the log file being sent over. |
Re: Reading log files of current
Quote:
|
Re: Reading log files of current
Quote:
Xn Wn Vn Un Tn Sn Rn Qn Pn On Nn Mn Ln Kn Jn In Hn Gn Fn En Dn Cn Bn An AD AE |
Re: Reading log files of current
For fun, I started reverse engineering the file to see what I can see. Here's a snippet of the file displayed as hex:
(exported from frhed, and trimming off the first 0x14 bytes on a hunch (I think it's the header)) Code:
4bb98a019cf804b3030243545741540011776c0100000000000000000000000000621d27018ab94b 019da94c 01b0a94d I've also been looking for floating point numbers (put a 4 byte likely candidate into an IEEE-754 calculator to see if it's a meaningful number). My guess is that it's recording low resolution data quickly, or it's higher resolution data very quickly and they are multiplexing the current sensing. I'm still trying to make sense of it. It would be super helpful to have a file from a robot under known conditions. Something like Code:
power upI know the OP wasn't looking for a research project, but this is an interesting type of problem that can be solved with a little testing. |
| All times are GMT -5. The time now is 01:41. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi