Go to Post you know you're going to meet someone important, so you put on your robotics team shirt. - NorviewsVeteran [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-02-2012, 11:31
jnettleton jnettleton is offline
Registered User
FRC #2501
 
Join Date: Feb 2012
Location: Oakdale, MN
Posts: 6
jnettleton is an unknown quantity at this point
how to use netconsole in C++

I formatted the cRIO and selected the check box for NetConsole. Now I need to figure out how to use it.

How can I include it the C++ code? I added "netcosole::cout << "test";" but it didn't compile.

Where can I find the NetConsole program on the development PC?
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2012, 14:27
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 671
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: how to use netconsole in C++

If you installed all the updates correctly, you should have a "NetConsole for cRIO" when you click "Start->All Programs". After you click on NetConsole, you need to enter the IP address of the cRIO (e.g. 10.te.am.2).

I am not sure about cout but you can do printf in your code. I think some other threads said cout doesn't work.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2012, 14:33
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: how to use netconsole in C++

Quote:
Originally Posted by mikets View Post
If you installed all the updates correctly, you should have a "NetConsole for cRIO" when you click "Start->All Programs". After you click on NetConsole, you need to enter the IP address of the cRIO (e.g. 10.te.am.2).

I am not sure about cout but you can do printf in your code. I think some other threads said cout doesn't work.
If I recall correctly cout doesn't redirect to the right place all the time, but cerr does. Printf seems to always work so give the other two a shot and fall back on printf if they don't work right
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2012, 18:22
jnettleton jnettleton is offline
Registered User
FRC #2501
 
Join Date: Feb 2012
Location: Oakdale, MN
Posts: 6
jnettleton is an unknown quantity at this point
Re: how to use netconsole in C++

If you select NetConsole in the imaging tool, is the 'console out' on the serial port automatically disabled? I.E. is either 'console out' on the serial port or NetConsole over the ethernet cable?
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2012, 20:42
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: how to use netconsole in C++

Quote:
Originally Posted by jnettleton View Post
If you select NetConsole in the imaging tool, is the 'console out' on the serial port automatically disabled? I.E. is either 'console out' on the serial port or NetConsole over the ethernet cable?
I'm not sure. I really only use the Serial console if something is very wrong with the cRIO.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:02.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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