Go to Post We do not pursue awards, we pursue greatness and the awards follow. - Sunshine [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-03-2016, 19:59
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
N MS HD-3000 Camera Code (LabView)

The attached code is beta software. I am only releasing it at this point due to the demand for such code. I have only tested it with up to 4x MS HD3000. It has the following capabilities:

1) Support for N Cameras. The only limit is labview, the OS, or USB bandwidth limits.
2) Capable of transmitting the images across the network to a dashboard using only one TCP/IP port.
3) Port hopping in the event a port is blocked (input array provides list of ports to try)
4) Allows for reading of the camera on the roborio
5) Allows for configuration of the roborio such that it is suitable for image processing
6) All video modes of the HD3000 are supported

This code is still in beta, expect some bugs. I'm still working on it and trying to make it more robust. Please submit any bug reports to me and explain how you came to it.

This code should be adaptable to other USB cameras but I do not yet know what would be required to do so.
Attached Files
File Type: zip 2016 Multi TCP Port Robot Project.zip (270.9 KB, 52 views)
__________________
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.
  #2   Spotlight this post!  
Unread 22-03-2016, 01:14
jojoguy10's Avatar
jojoguy10 jojoguy10 is offline
Programming/Controls Mentor
AKA: Joe Kelly
FRC #0997 (Spartan Robotics) and FRC #2990 (Hotwire Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Corvallis, OR
Posts: 295
jojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant future
Re: N MS HD-3000 Camera Code (LabView)

This looks very interesting. Personally, I'm not really sure how to implement it in our code. I know it's still in beta, but a good tutorial or some kind of document would help a lot.

We're using two cameras on two ports and switching back and forth. This causes a small 2-3 second delay. Is there any delay with your setup?
__________________

2013 and 2014 - Student (FRC#2990), Programmer (LabVIEW)
2015 and 2016 - Mentor (FRC#2990), Programming (LabVIEW)
2017-Current - Mentor (FRC#997), Controls/Programming (Java)
2015-Current - A/V Volunteer at Oregon events
  #3   Spotlight this post!  
Unread 22-03-2016, 05:36
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: N MS HD-3000 Camera Code (LabView)

The code can stream all cameras simultaneously. Any delay would only come from the time it takes to switch streams on the dashboard from one to the other.

Sorry for the lack of documentation, that usually comes with the release. I've been working on this in my spare time and we've got a competition this weekend.
__________________
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.
  #4   Spotlight this post!  
Unread 22-03-2016, 06:24
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 170
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Re: N MS HD-3000 Camera Code (LabView)

That's awesome - thanks for sharing
  #5   Spotlight this post!  
Unread 22-03-2016, 09:20
jojoguy10's Avatar
jojoguy10 jojoguy10 is offline
Programming/Controls Mentor
AKA: Joe Kelly
FRC #0997 (Spartan Robotics) and FRC #2990 (Hotwire Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Corvallis, OR
Posts: 295
jojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant future
Re: N MS HD-3000 Camera Code (LabView)

Quote:
Originally Posted by adciv View Post
The code can stream all cameras simultaneously. Any delay would only come from the time it takes to switch streams on the dashboard from one to the other.

Sorry for the lack of documentation, that usually comes with the release. I've been working on this in my spare time and we've got a competition this weekend.
If it streams all of the cameras simultaneously, does it go over the 7Mbps bandwidth restriction?

And I totally understand about the documentation :-)
__________________

2013 and 2014 - Student (FRC#2990), Programmer (LabVIEW)
2015 and 2016 - Mentor (FRC#2990), Programming (LabVIEW)
2017-Current - Mentor (FRC#997), Controls/Programming (Java)
2015-Current - A/V Volunteer at Oregon events
  #6   Spotlight this post!  
Unread 22-03-2016, 13:08
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: N MS HD-3000 Camera Code (LabView)

Bandwidth usage is dependent on the resolutions you select. We've 2x 160x120 @ 10FPS and 1x 424x240 @10fps streams simultaneously (three streams total) and hit ~2.1 mbps. I don't think it'll be an issue unless you want to go to standard resolutions or 30fps. Also, if you select the appropriate VI (I'll have to check which one) you can enable/disable streams. I need to look at expanding some of this capability in the future when I have more time.

I'll make a note to add a bandwidth counter/monitor.
__________________
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.
  #7   Spotlight this post!  
Unread 23-03-2016, 16:27
teku14's Avatar
teku14 teku14 is offline
http:
FRC #2614 (MARS)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Morgantown, WV
Posts: 64
teku14 is a jewel in the roughteku14 is a jewel in the roughteku14 is a jewel in the roughteku14 is a jewel in the rough
Re: N MS HD-3000 Camera Code (LabView)

There were some files missing in this project after we unzipped it:

Change Camera Configuration.vi
TCP Port Control.ctl
Qualifications Calculations.vi
  #8   Spotlight this post!  
Unread 23-03-2016, 19:15
bburt2006 bburt2006 is offline
Registered User
FRC #4632
 
Join Date: Jan 2016
Location: Minnesota
Posts: 3
bburt2006 is an unknown quantity at this point
Re: N MS HD-3000 Camera Code (LabView)

Hi,

First thank you for posting code! I tried opening it and seems to be missing the "Change Camera Configuration.vi"

Could I please get this missing vi?

Thanks Bill!
  #9   Spotlight this post!  
Unread 23-03-2016, 22:07
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: N MS HD-3000 Camera Code (LabView)

Sorry about that! The attached should have all the files.
Attached Files
File Type: zip 2016 Multi TCP Port Robot Project.zip (294.2 KB, 31 views)
__________________
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.
  #10   Spotlight this post!  
Unread 24-03-2016, 15:49
Bradley Boxer's Avatar
Bradley Boxer Bradley Boxer is offline
Registered User
AKA: Bradley Boxer
FRC #0303 (TEST Team 303)
Team Role: Programmer
 
Join Date: May 2015
Rookie Year: 2015
Location: United States
Posts: 26
Bradley Boxer is an unknown quantity at this point
Re: N MS HD-3000 Camera Code (LabView)

Thank you for making this!

I seem to still be missing files after downloading your new project:
-Camera Settings.ctl
-38 Video Mode.ctl
Others that aren't having problems: are these files in some other place I don't know where to look for them? Sorry for being a pain in the neck.

Thanks
  #11   Spotlight this post!  
Unread 24-03-2016, 19:45
GuyM142's Avatar
GuyM142 GuyM142 is offline
Registered User
AKA: Guy
FRC #3339 (BumbleBee)
Team Role: Mentor
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Israel
Posts: 158
GuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really niceGuyM142 is just really nice
Re: N MS HD-3000 Camera Code (LabView)

Thanks for the code! My team was looking for a solution for this all season, I hope it will work for us.

I have managed to recreate the missing controls, they were present in the project as regular controls but the actual type def was missing so I fixed it.

The fixed project is attached
Attached Files
File Type: rar 2016 Multi TCP Port Robot Project.rar (288.7 KB, 26 views)
__________________
2016-2017 - Programming Mentor
Curie Sub-Division Champions with 694, 379 & 1511
2015 - Team Captain & Head of Programming Crew
Carson Sub-Division Champions with 1325, 20 & 1711
First ever Israeli team on Einstein
2014 - Team Captain & Head of Programming Crew
2013 - Head of Programming Crew
2012 - Member of Programming Crew
Closed Thread


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 21:01.

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