|
Re: Using multiple programming languages via DLL
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.
|