View Full Version : System out println
In NetBeans, the build would never finish and messages would be sent to the output stream in session.
In Eclipse, the build stops.
Where do the system.out.println messages go?
The only thing I thought would work would be DriverStation -> Messages tab (or log tab) but both are empty
RufflesRidge
06-01-2015, 18:21
http://wpilib.screenstepslive.com/s/4485/m/13809/l/284333-using-riolog-to-view-console-output
afiolmahon
07-01-2015, 08:39
It may also be convenient to switch the java perspective to default when eclipse opens if you are just doing java programming since it has all of the tools that you will want instead of having your window cramped by the C++ views, java perspective has the RIOlog (robot console output) view shown by default if you have the plugins installed. (Preferences -> General -> Perspectives -> select java from list -> make default -> apply)
Team118Joseph
07-01-2015, 08:54
The driver station log is for lower level output. It will tell you the code couldn't load or LabView failed to start.
The riolog is completely empty... heres the code
int tick = 0;
public void disabled(){
while(isDisabled()){
System.out.println(tick++);
System.err.println(tick++);
Timer.delay(k_updatePeriod);
}
}
Team3266Spencer
07-01-2015, 21:56
I've only gotten the riolog to work when I have the rRIO plugged in via USB.
BradAMiller
08-01-2015, 09:35
Getting RIOlog (NetConsole) depends on the correct subnet mask settings on your computer. If you use DHCP and the router setup tool, it should set everything correctly. If you do it yourself, make sure you are using 255.255.255.0 as the subnet mask or you won't see anything.
thetonio96
08-01-2015, 23:05
So, RIOlog will work with this:
System.out.println(Some message);
System.err.println(Some message);
or do they use another function to print?
fsilberberg
08-01-2015, 23:18
So, RIOlog will work with this:
System.out.println(Some message);
System.err.println(Some message);
or do they use another function to print?
Yep, we redirect standard out and standard error to netconsole, which is what riolog reads.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.