From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,224 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,867 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,867 Views)