|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm wanting to write the following code for our robot code:
Startup: - create USBCamera object - set the brightness and exposure from stored preferences - disconnect from camera - run GRIP Currently when I try this, GRIP says that the frame grabber could not connect to the camera. Here's what I know so far: - I have created my own USBCamera class that is an exact copy of the WPI lib version, but gives me the ability to set the exposure with better control - The constructor for USBCamera calls openCamera() which calls NIVision.IMAQdxOpenCamera() - The USBCamera method closeCamera() calls NIVision.IMAQdxCloseCamera - I do not use the autocpature feature, I call getImage() and push that to the CameraServer object so startCapture() is never called. I assumed that NIVision.IMAQdxCloseCamera() would close the connection to the camera, but that does not seem to be the case. I am calling that and then trying to start GRIP and grip fails connecting to the frame grabber for cam0 (the same camera I just used in USBCamera). Does anyone have any idea how to do this? Any idea why calling USBCamera.closeCamera() does not disconnect from the camera object? Thanks in advance |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|