Working on configuring a new Allied Vision camera with ADVimba (1800 u811m), USB3 based, and have ran into an issue that I can't seem to figure out. I was able to get the camera ID using the ListCameras
example:
[jwlodek@dell-rhel8 x86_64bit]$ ./ListCameras
//////////////////////////////////////
/// Vimba API List Cameras Example ///
//////////////////////////////////////
Vimba C++ API Version 1.9.0
Cameras found: 1
/// Camera Name : Allied Vision 1800 U-811m
/// Model Name : 1800 U-811m
/// Camera ID : DEV_1AB22C012B2F
/// Serial Number : 01N3J
/// @ Interface ID : VimbaUSBInterface_0x0
However, when running the Vimba IOC with this camera ID I get:
2022/06/29 17:02:16.085 ADVimba:connectCamera: ERROR calling VimbaSystem::OpenCameraByID error=-3
2022/06/29 17:02:16.085 ADVimba::connectCamera error opening camera DEV_1AB22C012B2F
2022/06/29 17:02:16.085 ADVimba:ADVimba: camera connection failed (3)
Number of cameras detected: 0
Feature list
Port: VMB1
Timestamp: <undefined>
Input EOS[0]:
Output EOS[0]:
Parameter list 0
Number of parameters is: 103
I know this is the correct ID, because another example, ListFeatures
works, with this, and uses the same OpenCameraByID
function that is called in connectCamera
in ADVimba:
[jwlodek@dell-rhel8 x86_64bit]$ ./ListFeatures DEV_1AB22C012B2F
///////////////////////////////////////
/// Vimba API List Features Example ///
///////////////////////////////////////
Vimba C++ API Version 1.9.0
Printing all features of camera with ID: DEV_1AB22C012B2F
/// Feature Name : AcquisitionFrameCount
/// Display Name : Acquisition Frame Count
/// Tooltip : Number of frames to acquire in MultiFrame Acquisition mode.
/// Description : Number of frames to acquire in MultiFrame Acquisition mode.
/// SNFC Namespace : Standard
/// Unit :
/// Value : Could not get feature value. Error code: -6 (Invalid access.)
/// Minimum : 1
/// Maximum : 65534
/// Type : Long long integer
...
The output of the above command is very long so I cropped it just to show that the camera was found and opened.
This is the function from ListFeatures
:
err = sys.OpenCameraByID( "DEV_1AB22C012B2F", VmbAccessModeFull, pCamera ); // Get and open the camera
I have setup ADVimba to build with Vimba 6.0 which is the version I have downloaded, but that hasn't seemed to change much. I also thought it could be permission related, but I can run the examples as myself and have no problem, and running as root had the same issue.
Is there something else I'm missing here?