|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||
|
|||
|
Re: System out println
|
|
#3
|
|||
|
|||
|
Re: System out println
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)
|
|
#4
|
||||
|
||||
|
Re: System out println
The driver station log is for lower level output. It will tell you the code couldn't load or LabView failed to start.
Last edited by Team118Joseph : 07-01-2015 at 08:56. |
|
#5
|
||||
|
||||
|
Re: System out println
The riolog is completely empty... heres the code
Code:
int tick = 0;
public void disabled(){
while(isDisabled()){
System.out.println(tick++);
System.err.println(tick++);
Timer.delay(k_updatePeriod);
}
}
|
|
#6
|
||||
|
||||
|
Re: System out println
I've only gotten the riolog to work when I have the rRIO plugged in via USB.
|
|
#7
|
|||
|
|||
|
Re: System out println
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.
|
|
#8
|
|||
|
|||
|
Re: System out println
So, RIOlog will work with this:
Code:
System.out.println(Some message); System.err.println(Some message); |
|
#9
|
|||
|
|||
|
Yep, we redirect standard out and standard error to netconsole, which is what riolog reads.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|