|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Logging console data to text file on crio
I was wondering if any of the VXWorks Guru's knew how to log all the console data to a text file. I know how to write data from within a program "c++" to a text file but, I'm looking to log "ALL" console messages. So, if a program crashes or I get any allocation errors I will be able to review that information later. Normally I would just plug a serial logger into the serial port but we aren't allowed to do that this year.
|
|
#2
|
||||
|
||||
|
Re: Logging console data to text file on crio
I've never tried this, but a search turned up vxWorks' iolib, containing the function ioGlobalStdSet, which should let you redirect standard output to a file that you've opened:
http://www.fys.uio.no/studier/kurs/f...ioGlobalStdSet You likely won't get the early boot-up messages that go to console as your code won't have been loaded at that point to make this redirection, but if you are just looking to log your "printf" and other stdout-based logging output, this hopefully will do what you need. If you try it, let us know if it works. |
|
#3
|
||||
|
||||
|
Re: Logging console data to text file on crio
I don't see how this will redirect the console...
Where's Joe or Greg when we need them . |
|
#4
|
|||
|
|||
|
Re: Logging console data to text file on crio
Well deserved vacation, IIRC
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem receiving console output from cRIO | Arborama | Programming | 7 | 15-02-2009 03:30 |
| Data logging to internal memory | JBotAlan | C/C++ | 13 | 13-02-2009 00:04 |
| How to use the data obtain in one C file to another C file? | tommy_chai | Programming | 8 | 11-01-2008 02:17 |
| Can the robot read a text file? | CyDrive | Programming | 22 | 07-09-2007 15:43 |
| pic: Team Data Logging Device | falconmaster | Extra Discussion | 8 | 13-03-2007 10:01 |