09-28-2024 10:38 AM - edited 09-28-2024 10:43 AM
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
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.
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
Enable vision is already enabled
09-28-2024 11:40 AM
09-28-2024 11:47 AM
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
09-28-2024 01:43 PM
@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.
09-28-2024 02:37 PM
We've already tested that, and even with theIMAX closed unfortunately we don't get camera response