2 USB Cameras on RoboRio?

We are trying to use 2 usb cameras on the RoboRio. The goal being the ability to switch between the 2 using a button and see the different feeds on the driver station.

We are an inexperienced team. First match Saturday (ugg). Doing all of our programming in LabView. Not much java experience.

Any help would be appreciated.

Greg

1 Like

If one of your cameras is a Limelight you can plug a USB camera into the Limelight and view both screens side by side or Picture In Picture.

Would using the two camera views already on the Dashboard work for you?
In addition to the camera window on the left of the Dashboard, there is also another camera tab on the right. They are both functional.

The default Arcade program already has one camera streaming by default to the Dashboard. Another can be added.
Just plug a USB camera into one oif the the roboRIO USB A ports.

It works but its 2 slideshows

1 Like

https://docs.wpilib.org/en/latest/docs/software/vision-processing/introduction/using-multiple-cameras.html

That’s for Java and C++. Not sure about LabView.

Also, read https://docs.wpilib.org/en/latest/docs/software/vision-processing/introduction/cameraserver-class.html#usb-camera-notes, that section is applicable to all languages.

This is doable, but be warned, we did this last year and it turned out to be the cause of significant driver input lag. Even at log FPS and low resolution, two USB cams can use a lot cpu and bandwidth.

1 Like

Would there be any code necessary for this or does it automatically happen?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.