LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB Camera will not show image on the FRC driverstation

My team is suffering a problem regarding the USB camera plugged into Roborio. When we plug the camera into the usb port, it recognizes the device on the driverstation. However, when we select it, the message “connecting to roborio” appears, it starts a time of 20 seconds waiting for it to connect until finally the connection is lost

Feldix_0-1727535917669.jpegFeldix_1-1727535929763.jpeg

 

Feldix_2-1727535947434.jpeg

 

We tested the camera once before the season and it worked. However, when it came time to use it, it stopped working and we decided to find out later why it wasn’t working due to lack of time.

 

Using the camera test VI and NI MAX it is possible to obtain images in both cases.

 

Feldix_3-1727535982296.jpeg

 

Feldix_4-1727535997199.jpeg

 

We’ve already tried changing the resolution and compression via the dashboard. Another thing to note is that the specified camera we’re using has an indicator LED to tell us if it is on. In Dashboard, it is not on. we use this 3 topic as a reference.

Here’s a screenshot of our Vision Processing. We tried using a standard program and recreating the roborio image, but that didn’t work either

 

Feldix_5-1727536026921.jpeg

 

Enable vision is already enabled

Feldix_7-1727536184541.png

 

 

0 Kudos
Message 1 of 5
(273 Views)
The most common problem like this would be caused by trying to open a session while another session is reserving the same hardware resources. Are you sure that all applications have closed the session?

"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 5
(255 Views)

Sorry for the ignorance sir, but what do you mean by that? another session using the hardware? We're a team starting to get used to Labview

0 Kudos
Message 3 of 5
(250 Views)

@Feldix wrote:

Sorry for the ignorance sir, but what do you mean by that? another session using the hardware? We're a team starting to get used to Labview


Never apologize for ignorance!  How would anyone ever learn?

 

Whenever one application is using some hardware device (like your camera) it opens a "Session" that get an exclusive lock on all of the resources that are needed to communicate with the device.  So, if MAX is open and using the camera, no other applications can get access to the resources that are already in use.  You will get an error message saying that a Session could not be established. 

 

That sounds a lot like what you described. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 5
(222 Views)

We've already tested that, and even with theIMAX closed unfortunately we don't get camera response

0 Kudos
Message 5 of 5
(210 Views)