View unanswered posts | View active topics It is currently Thu Apr 17, 2014 2:28 pm






Reply to topic  [ 10 posts ] 
RobotC in other compiler 
Author Message
Rookie

Joined: Mon Oct 13, 2008 8:35 pm
Posts: 5
Post 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.


Mon Oct 13, 2008 8:39 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 403
Post 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.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Mon Oct 13, 2008 9:55 pm
Profile
Rookie

Joined: Mon Oct 13, 2008 8:35 pm
Posts: 5
Post Re: RobotC in other compiler
But can I get the libraries from somwhere?


Wed Oct 15, 2008 12:17 am
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 403
Post 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?

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Wed Oct 15, 2008 8:41 am
Profile
Rookie

Joined: Mon Oct 13, 2008 8:35 pm
Posts: 5
Post 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?


Wed Oct 15, 2008 1:44 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 403
Post 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.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Thu Oct 16, 2008 8:20 am
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 591
Post 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.

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Thu Oct 16, 2008 8:52 am
Profile
Rookie

Joined: Mon Oct 13, 2008 8:35 pm
Posts: 5
Post 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.


Thu Oct 16, 2008 11:21 pm
Profile
Rookie

Joined: Mon Oct 13, 2008 8:35 pm
Posts: 5
Post 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.


Thu Oct 16, 2008 11:46 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 403
Post 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.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Fri Oct 17, 2008 2:58 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.