Go Back   VEX Forum > Community > General Forum

General Forum Open Discussion of the VEX Robotics System that can be answered by anyone. VEX Robotics Engineers will not answer questions posted here; see Official VEX Technical Support below.

Reply
 
Thread Tools
  #1  
Old 08-24-2009, 09:25 PM
freetrader0000 freetrader0000 is offline
Member
 
Join Date: Jan 2009
Location: Puerto Rico
Posts: 39
Print functions in robotC?

Are there any functions that allow you to print anything to the screen in RobotC? Like the printf function in C. I already posted this on the robotC forum though it's not as active as this one.
Reply With Quote
  #2  
Old 08-24-2009, 10:42 PM
GoFoBroke's Avatar
GoFoBroke GoFoBroke is offline
Member
VEX # 2438
 
Join Date: Apr 2009
Location: Honolulu, Hawaii
Posts: 88
Images: 2
Send a message via AIM to GoFoBroke
Re: Print functions in robotC?

Do you really need one? The debugger shows you all of your variables
Reply With Quote
  #3  
Old 08-25-2009, 01:36 AM
MarkO's Avatar
MarkO MarkO is offline
Senior Member
 
Join Date: Aug 2006
Location: Albany, Oregon, USA, North Western Hemisphere, Planet Tera
Posts: 2,340
Images: 10
Re: Print functions in robotC?

Quote:
Originally Posted by freetrader0000 View Post
Are there any functions that allow you to print anything to the screen in RobotC? Like the printf function in C. I already posted this on the robotC forum though it's not as active as this one.

Good News and Bad News...

According to the Help, in Section "Debugger Vs. Traditional Methods", there is a "print function" :

Quote:
If your robot platform supports a display device (which could be a serial link to your PC or an LCD display on the robot) then you would have to add “print” statements to your program code at various points in your program. By examining the display, you can (hopefully) determine what’s happened in your program's execution by the display.

Both of the above techniques are available in ROBOTC. However, a real-time debugger eliminates the need to resort to them.
Unfortunately, there seems to be no reference in the Help for the Format of the "Print Function". Even using the Help shipped with ROBOTC v1.40, which is new than the one shipped with ROBOTC v1.70b.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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


All times are GMT -6. The time now is 04:05 PM.


VEX and VEX Robotics are trademarks or service marks of Innovation First International, Inc.
Copyright © 2002-2013. All Rights Reserved. VEX Robotics, Inc. is a subsidiary of Innovation First International, Inc.
All other product names/marks of others are the property of their respective owners.