Go to Post There's "FIRST the organization" and then there's "FIRST the vision for the future through a set of ideals". I've grown somewhat skeptical of the former in recent years, but, after 10 years, I'd still throw myself in front of a bus for the latter. - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-04-2016, 17:01
techbeast34 techbeast34 is offline
Registered User
FRC #4048
 
Join Date: Jan 2014
Location: Westborough, Massachussets
Posts: 6
techbeast34 is an unknown quantity at this point
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
Now we tried adding the environment variable "LD_LIBRARY_PATH" on the roboRIO to point to liblvrt.so.15.0, but that didn't work. After, we copied liblvrt.so.15.0 to /usr/lib from /usr/local/natinst/labview/, our code did not seem to run upon startup without us manually running frcRunRobot.sh. But after running our code, what's strange is that there was an error for "CPUInformation.cpp" at line 405. Has anyone else here tried this at all? If so, did you come across these errors and how did you get across them?

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.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-04-2016, 17:13
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 116
aeastet is an unknown quantity at this point
Re: Using LabVIEW vision with Java code

You might have to re-register Vision. We had to do that to ge tit to work.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-04-2016, 21:06
Lorenzo334's Avatar
Lorenzo334 Lorenzo334 is offline
Lorenzo Guerra
AKA: Lorenzo
FRC #4063 (TRikzR4kidz)
Team Role: Programmer
 
Join Date: Nov 2015
Rookie Year: 2015
Location: Del Rio, TX
Posts: 10
Lorenzo334 is an unknown quantity at this point
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.
__________________
With thanks,

Lorenzo Guerra
Programmer (Labview)
Team 4063
Reply With Quote
  #4   Spotlight this post!  
Unread 14-04-2016, 22:29
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
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.
__________________
Team Fusion 364 - Driver/Programmer 2012-2015; Controls Mentor 2016-Present
Reply With Quote
  #5   Spotlight this post!  
Unread 15-04-2016, 18:13
JeffB JeffB is offline
Registered User
FRC #5052 (RoboLobos)
Team Role: Mentor
 
Join Date: Apr 2015
Rookie Year: 2014
Location: Austin
Posts: 48
JeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to behold
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi