Go to Post No, we will not call you a "stupid freshman", we attribute your hasty remark due to lack of expirence, but you will gain that in time. - Mr. Ivey [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 28-01-2017, 13:21
Steph342's Avatar
Steph342 Steph342 is offline
Registered User
FRC #5508 (Career Magnet Academy)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2007
Location: Knoxville, TN
Posts: 27
Steph342 is an unknown quantity at this point
2 cameras

I see they have created a tab for an additional camera this year but not sure how we should program it. Any help?
__________________
Team #342 Alumni
Team 5508 Mentor
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2017, 16:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: 2 cameras

You just have to duplicate the initial USB 0 camera setup in the default project code Vision Processing.vi for a second camera.
You just need the section that sets up the camera up to the "Camera IP & Dash" You don't need anything in the while loop.

For two USB cameras start the second camera as USB 1, and give it a different name "camera 2" for instance.

One extra point, if you use two USB cameras, then use the controls to start both cameras at their lowest resolution, 10 fps and 50% compression.
Otherwise, the USB driver will choke on the too high bandwidth and just give you a blank screen for the second camera with an error message.
Once both cameras are running at low res you can bring them up to higher res to find the USB bandwidth limit.
This is a different bandwidth limit than the wireless 7Mbps.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 28-01-2017 at 16:14.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2017, 11:19
Steph342's Avatar
Steph342 Steph342 is offline
Registered User
FRC #5508 (Career Magnet Academy)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2007
Location: Knoxville, TN
Posts: 27
Steph342 is an unknown quantity at this point
Re: 2 cameras

Thanks
__________________
Team #342 Alumni
Team 5508 Mentor
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2017, 12:12
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,385
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: 2 cameras

Out of curiosity, suppose we would like to stream video directly from an RPi to the first or second window instead of passing it through the RoboRio. What URL, or other destination, would we send the video to have it populate on the Dashboard or Smart Dashboard video windows?
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2017, 14:42
JeffB JeffB is online now
Registered User
FRC #5052 (RoboLobos)
Team Role: Mentor
 
Join Date: Apr 2015
Rookie Year: 2014
Location: Austin
Posts: 64
JeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to beholdJeffB is a splendid one to behold
Re: 2 cameras

To figure out where to send things, take a look at the video processing code in the dashboard example project. You can find what's feeding the image indicator by double-clicking on its border (when the cursor looks like an arrow). This will take you into the portion of your block diagram where the indicator exists and you can see from there where the data comes from.

If you do want to go this route, I'd make sure to read R65 as it outlines what ports you can use for various types of communication. You'd want to make sure your camera adhered to these rules to avoid conflicts later.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 30-01-2017, 15:01
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,385
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: 2 cameras

Quote:
Originally Posted by JeffB View Post
To figure out where to send things, take a look at the video processing code in the dashboard example project. You can find what's feeding the image indicator by double-clicking on its border (when the cursor looks like an arrow). This will take you into the portion of your block diagram where the indicator exists and you can see from there where the data comes from.

If you do want to go this route, I'd make sure to read R65 as it outlines what ports you can use for various types of communication. You'd want to make sure your camera adhered to these rules to avoid conflicts later.
Bummer, we are not using LabView this year, so we don't have it installed on any of our laptops. Is there a chance someone here can decode this info for us?
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #7   Spotlight this post!  
Unread 30-01-2017, 15:18
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: 2 cameras

The default dashboard assumes the camera feeds are coming from the roboRIO IP address. The roboRIO would need to forward a video stream to use the default dashboard as is.
It'd be much easier to modify the Dashboard to take a feed from a different IP address.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 30-01-2017, 15:40
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,385
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: 2 cameras

Quote:
Originally Posted by Mark McLeod View Post
The default dashboard assumes the camera feeds are coming from the roboRIO IP address. The roboRIO would need to forward a video stream to use the default dashboard as is.
It'd be much easier to modify the Dashboard to take a feed from a different IP address.
Excellent, that actually answers the question.
One more item to add to the coder's list!
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
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 10:56.

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