Go to Post Making a part look pretty even after it is functionaly done can be a very good thing, espically when the part gets cut from the bot and you get to keep it as a trophey. Take pride in your work. - Andy A. [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 10-03-2011, 15:43
meakerb's Avatar
meakerb meakerb is offline
Mentor
FRC #3786
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Washington
Posts: 13
meakerb is an unknown quantity at this point
switching between cameras

Our team will be using two cameras. However, the first one is bagged with the robot, and the second one is not here yet, so we are coding as best we can for now.

Both cameras will be configured to send the video data directly through the bridge to the front panel per the directions from the National Instruments paper Send Axis Camera Signal Directly to Dashboard

One camera will utilize IP address 10.te.am.11 and the other will utilize IP address 10.te.am.12 (with te.am being our team number - as always).

My question has to do with how to mux between the two different video streams and displaying them onto the dashboard. We only need to see the camera output from one camera at a time, and we don't want the classmate to process video data for both streams even though only one is being displayed (to minimize the processing requirements on the classmate).

Our plan is to have a case statement that will select the appropriate IP address to feed into the READ MJPG VI. Will doing that causes any issues? Will we be able to dynamically switch back and forth between cameras that way? If not, how should we do it?

Thanks for your help.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-03-2011, 21:01
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: switching between cameras

Your IP setup and approach make sense to me.

My suggestion would be to start both cameras, and read from both streams in either the same loop or in parallel loops. This will keep the TCP buffers emptied. Skip the jpeg decode on one of them and see what the CPU usage is. The classmates are pretty capable, and I think you'll find that you could probably decode and display both if you wanted. Please post your findings.

Greg McKaskle
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:14.

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