Thread: PrintFs
View Single Post
  #3   Spotlight this post!  
Unread 20-12-2008, 02:46
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: PrintFs

Quote:
Originally Posted by nickmagus View Post
Does anyone know how to get window to see the C++ printfs coming from the robot on your computer? I have been able to download and debug code successfully but I am still unable to get feedback on what the code is actually doing other than the actions of the robot.
You need to configure your cRio and PC as described in section 5.4.1 of the control system manual. If you're looking for another terminal client for Windows PuTTY is what I'm using.

Essentially you need to use the serial port on the cRio for that type of output.

However if you're using printfs as your primary means for debugging I suggest you look into using break points and the other debugging tools integrated with windriver.

Quote:
Originally Posted by EricH View Post
C++ printfs are known as couts. Try using a few of those.
printfs work as expected when you configure your system as I said above.
__________________
Eric Haskins KC9JVH