Thread: 2 camera's?
View Single Post
  #4   Spotlight this post!  
Unread 30-04-2011, 07:17
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: 2 camera's?

Since the DLink is a four port switch, you can plug four devices into it. If you want to be able to use it, especially on the field, you'll need to change the camera IP to 10.te.am.11, or something larger than 10.

If code running on the cRIO needs to get an image, Open the connection using the new IP. I'm not certain if this was exposed for all WPILib languages, but it is there for LV and should be easy to add for the others.

If the code running on the dashboard needs to get an image, or better yet, an image stream, it requests it from the camera directly. It doesn't need to bother the cRIO. There is an article with attached VI on the NI site that covers some of this.

Greg McKaskle