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:
Support for N Cameras. The only limit is labview, the OS, or USB bandwidth limits.
Capable of transmitting the images across the network to a dashboard using only one TCP/IP port.
Port hopping in the event a port is blocked (input array provides list of ports to try)
Allows for reading of the camera on the roborio
Allows for configuration of the roborio such that it is suitable for image processing
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.
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?
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.
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.
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 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.