View Single Post
  #5   Spotlight this post!  
Unread 21-08-2013, 22:18
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: Using multiple programming languages via DLL

Quote:
Originally Posted by magnets View Post
A java program cannot run by itself or be called from LV because it requires a JVM to run. C++ is very similar to java, and like Greg McKaskle said, it can be use with labview.

Another alternative might be to use Java on the robot, and send data back and forth to a labview program running on the driver station laptop. This year, our team programmed the robot in Java, but we wrote our image processing code in Labview. On the driver station laptop we ran a labview program that grabbed a frame from the camera, did the image processing stuff, then sent the coordinates of the target back to the robot. This program also had a bunch of status indicators, as well as a bunch of tuning options and buttons which could control the robot if we didn't have a joystick.

The opposite is also possible, where you have a labview program running on the robot and a java program/extension of smartdashboard running on the laptop.

I'm having a hard time imagining a situation where both LabVIEW and Java are required and where C++ and LabVIEW wouldn't work. If you don't mind, could you explain what you are trying to accomplish? Somebody might know a way to do it in C++ instead of Java.
The reason we want to do this is basically because a lot of us already learned how to program in Java/are going to take a course on it, but there are people who also want to get our team to use labVIEW. Rather than just throw all of our Java training out the window, we figured a good compromise would be to do this. Using C++ would kind of defeat the purpose. It would also be better for college application/resume building if we could say we knew both Java and LabVIEW.