View Single Post
  #3   Spotlight this post!  
Unread 18-03-2016, 22:35
TogetherSword8 TogetherSword8 is offline
Registered User
FRC #0888 (Robotiators)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Glenelg High School
Posts: 85
TogetherSword8 is an unknown quantity at this point
Re: 2 usb camera toggle in labview

I know there is a way to get both camera streams through usb. Look at the example code, and when it initializes camera, it has you choose between usb 0 and camera-team.local. If you change the camera-team.local to usb 1, it will be the second camera. If you double this initialization code for usb 0 and usb 1, you can choose which camera reference to read.
As for how to forward this image to the robot, I am not sure, but my idea would be to use an udp connection and send over the image at the end, choosing between the two. There is probably a more efficient way, but I don't have a robot with me such that I could test any potential solutions.
__________________
I program a robot. Which means I write code and everyone gets mad at me when something doesn't work, even if I am the only one that knows it doesn't work. The key part to know is that the robot never works.
Reply With Quote