ROBOTC.net forums
http://www.robotc.net/forums/

RobotC in other compiler
http://www.robotc.net/forums/viewtopic.php?f=21&t=819
Page 1 of 1

Author:  iron_guitarist1987 [ Mon Oct 13, 2008 8:39 pm ]
Post subject:  RobotC in other compiler

I was wondering if I could compile and run code for VEX robots in another compiler, such as visual studio or Dev.

Author:  jbflot [ Mon Oct 13, 2008 9:55 pm ]
Post subject:  Re: RobotC in other compiler

General programming languages like Dev and Visual Studio don't have the libraries and functions to take advantage of the VEX system, so no.

Author:  iron_guitarist1987 [ Wed Oct 15, 2008 12:17 am ]
Post subject:  Re: RobotC in other compiler

But can I get the libraries from somwhere?

Author:  jbflot [ Wed Oct 15, 2008 8:41 am ]
Post subject:  Re: RobotC in other compiler

Many of the ROBOTC libraries are actually available for you to view, if you check in your ROBOTC Program Files directory, wherever you have it installed.

The thing is, the other programming environments still won't be suitable for the VEX platform. The ROBOTC compiler was designed to take the functions you write and turn them into opcodes the VEX understands; a general compiler is not. Also, the other languages have no way of transferring programs to the VEX itself.

Are you trying to do something in ROBOTC that you haven't been able to?

Author:  iron_guitarist1987 [ Wed Oct 15, 2008 1:44 pm ]
Post subject:  Re: RobotC in other compiler

Im trying to make a GUI to move a robot arm. I wanted to make it in MATLAB using C MEX files. Write small pieces of code in C and load them into MATLAB as functions. Is there anyother way I can make a GUI for the robot?

Author:  jbflot [ Thu Oct 16, 2008 8:20 am ]
Post subject:  Re: RobotC in other compiler

Cool project. Because of the compiler differences, I'm not sure that there's a simple way to accomplish it. I'll pass this forum around and see if anyone else has any ideas.

Author:  tfriez [ Thu Oct 16, 2008 8:52 am ]
Post subject:  Re: RobotC in other compiler

This is not possible using ROBOTC or any programming language for VEX, to my knowledge.

MATLAB would need specific functionality to connect and download to the VEX and then provide feedback to the PC. If someone has written this, then it may be possible, but in regards to ROBOTC, it is not.

As well, we don't have any libraries or functionality for MATLAB from ROBOTC.

Author:  iron_guitarist1987 [ Thu Oct 16, 2008 11:21 pm ]
Post subject:  Re: RobotC in other compiler

Im not going to use Matlab directly, Im going to use C-MEX files, which is basically run a C code as a Matlab function. I did this once for a DSP, I just took the libraries, made a C code and then made a Matlab function. I just need a way to move the robot using C, but using any other C compiler.

Author:  iron_guitarist1987 [ Thu Oct 16, 2008 11:46 pm ]
Post subject:  Re: RobotC in other compiler

Is there anyway to import/export data from RobotC or something. I really need something for my Software Engineering course and I really want to use the robot because everyone else is doing databases.

Author:  jbflot [ Fri Oct 17, 2008 2:58 pm ]
Post subject:  Re: RobotC in other compiler

Not with ROBOTC. Maybe try looking into MPLAB. It can be used to program the VEX at a much lower level.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/