Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   how to use netconsole in C++ (http://www.chiefdelphi.com/forums/showthread.php?t=101930)

jnettleton 04-02-2012 11:31

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?

mikets 04-02-2012 14:27

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.

RufflesRidge 04-02-2012 14:33

Re: how to use netconsole in C++
 
Quote:

Originally Posted by mikets (Post 1119843)
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

jnettleton 04-02-2012 18:22

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?

RufflesRidge 04-02-2012 20:42

Re: how to use netconsole in C++
 
Quote:

Originally Posted by jnettleton (Post 1119984)
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.


All times are GMT -5. The time now is 17:38.

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