View Single Post
  #8   Spotlight this post!  
Unread 04-02-2015, 06:06
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Multiple cameras on one Robot

I only set that code up for Axis cameras. Yesterday I posted some code (link below) which will work for two USB cameras.

http://www.chiefdelphi.com/forums/sh...d.php?t=133771

*edit* sorry, I realized a better explanation was in order.

The Axis Cameras and USB Camera images are buffered by the Rio. How this buffering is accomplished is very different between the two. The Axis cameras stream JPG images to the RIO over the network. In order to minimum latency and memory requirements, the standard code continuously reads the images from the networkand buffers them. This buffer is passed by reference to the "send 2 PC" vi which transfers the image to the dashboard. The USB camera buffering is automatically handled in the background by either the driver of labview itself. In order to read the image, you just need to call the IMAQ vi which reads the image buffer. The samples provided are each specifically tailored to the camera types. The example provided in this thread is specifically tailored to switching between the Axis camera buffer references and sending this to the Send2PC vi. The USB one provided will close & reopen the camera (not a big issue due to small time delay).

It should be possible to combine the two into one function and automatically switch between them. I just haven't had the time to do so yet. In the mean time, I can only attempt type specific code. I do plan to improve these samples as I have time, but we have a week 1 event and we're going to be pressed as is.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.

Last edited by adciv : 04-02-2015 at 08:21.