Print functions in robotC?

  1. 6 years ago

    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.

  2. GoFoBroke

    25 Aug 2009 Honolulu, Hawaii 2438

    Do you really need one? The debugger shows you all of your variables

  3. MarkO

    25 Aug 2009 Albany, Oregon, USA, North Wes...

    @freetrader0000 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 "[FONT=Arial]Debugger Vs. Traditional Methods[/FONT]", there is a "print function" :

    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.

 

or Sign Up to reply!