View Single Post
  #1   Spotlight this post!  
Unread 04-20-2016, 11:18 PM
MikeF1617 MikeF1617 is offline
Registered User
AKA: Michael Fischler
FRC #1124 (UberBots)
Team Role: Programmer
 
Join Date: Sep 2013
Rookie Year: 2013
Location: United States
Posts: 15
MikeF1617 is an unknown quantity at this point
Re: Using LabVIEW vision with Java code

If I understand what you are saying, you are trying to run both LabVIEW and Java code on the robot simultaneously. I am by no means an expert on the roboRIO, but I am pretty sure that is not supported. I assume it is simply not designed to run two programs at once (someone feel free to correct me if I am wrong). However, if you try hard enough, it may be possible, but you would probably have to do some deep digging into what the roboRIO does when handling your vision code and the robot code. I have a feeling that the error isn't because of a reconfiguration, more that it is handling an unexpected situation.

While that does not solve your problem, I'll share what we did this year. I used a LabVIEW dashboard to process vision, connecting directly to an axis IP camera (you would have to stream the USB camera from the roboRIO if you are using the life cam or another USB camera). It runs all the vision code on the driver station laptop, and sends back essential data to the robot about the targets' centers of mass, widths, etc. I haven't had any noticeable issues with latency, since the camera streams straight over the network to the dashboard and then just sends data over NetworkTables to the Java robot code.
Reply With Quote