Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   System out println (http://www.chiefdelphi.com/forums/showthread.php?t=132268)

Arhowk 06-01-2015 17:56

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

Re: System out println
 
http://wpilib.screenstepslive.com/s/...console-output

afiolmahon 07-01-2015 08:39

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)

Team118Joseph 07-01-2015 08:54

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.

Arhowk 07-01-2015 17:56

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);
            }
    }


Team3266Spencer 07-01-2015 21:56

Re: System out println
 
I've only gotten the riolog to work when I have the rRIO plugged in via USB.

BradAMiller 08-01-2015 09:35

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.

thetonio96 08-01-2015 23:05

Re: System out println
 
So, RIOlog will work with this:
Code:

System.out.println(Some message);
System.err.println(Some message);

or do they use another function to print?

fsilberberg 08-01-2015 23:18

Quote:

Originally Posted by thetonio96 (Post 1424745)
So, RIOlog will work with this:
Code:

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.


All times are GMT -5. The time now is 10:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi