|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Using LabVIEW vision with Java code
So our team is trying to use the LabVIEW vision code that our LabVIEW team created, to run alongside our Java code. The problem is, is that when I start the LabVIEW runtime at "/usr/local/natinst/labview/lvrt" on the RoboRIO, this error pops up:
Code:
Can't find library liblvrt.so.15.0 Make sure this library is installed in your LD_LIBRARY_PATH search path, or in /usr/lib After some more experimentation, it seems like when you copy liblvrt.so.15.0, the script that continuously runs frcRunRobot.sh gets hung somewhere and stops running until the file is deleted. Also adding the environment variable LD_LIBRARY_PATH to .bashrc (in /home/lvuser) and having it point to liblvrt.so.15.0's directory doesn't work. This thread is also in the Java forum too, I just cross posted it to make sure I got both sides of the discussion. |
|
#2
|
|||
|
|||
|
Re: Using LabVIEW vision with Java code
You might have to re-register Vision. We had to do that to ge tit to work.
|
|
#3
|
||||
|
||||
|
Re: Using LabVIEW vision with Java code
Quick question why don't you guys just run full LabVIEW code? What I mean is to just program your robot in LabVIEW or Java altogether.
|
|
#4
|
|||||
|
|||||
|
Re: Using LabVIEW vision with Java code
Are you saying that you are trying to run both Java and LabVIEW at the same time on your RoboRIO? That doesn't sound good to me...
Could you post code so that it's easier to debug? Are you using the LabVIEW vision example to process images on the RoboRIO? Why don't you run your vision code in a custom LabVIEW dashboard and then send back values to the Java code (on the RoboRIO) over NetworkTables? That would free up some resources on the RoboRIO and then it would allow you to fine tune your HSV and Score values on the fly. |
|
#5
|
|||
|
|||
|
Re: Using LabVIEW vision with Java code
They haven't been back. But, I suspect they are trying to use NI Vision with the text-based API. It's one of the three installation configurations available.
1) Install LabVIEW for everything. 2) Install NI Vision for work with Java or C++ 3) Only install the driver station and handle the rest. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|