FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting NetConsole data into a file

Does NetConsole have a data logger? I would like to get the ouput displayed in the NetConsole window into a text file. Windows Select All and paste only gets what is displayed, and trying to mark a larger range for cutting doesn't work

fast and is hit or miss. I have many printf's.

0 Kudos
Message 1 of 3
(4,287 Views)

If you triple-click in the net console window, it will select everything in the buffer. There is currently no log to file option.

The act of selecting also copies that text to the clip board. You should then be able to paste in your favorite text editor.

0 Kudos
Message 2 of 3
(2,930 Views)

Netconsole uses UDP broadcast on port 6666. There are many programs that can listen on that port and log the data. I've used netcat before to do it. Here's a tool that team 492 wrote that does it also: http://www.chiefdelphi.com/forums/showthread.php?t=111716. Here's some python code that could be easily modified to log data: http://www.virtualroadside.com/blog/index.php/2010/11/12/crio-netconsole-implemented-in-python/

0 Kudos
Message 3 of 3
(2,930 Views)