-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0 size buffers in processBuffer() when capturing 'Single' or 'Multiple' #20
Comments
Additional info: |
That sounds to me like your camera may not support "single" or "multiple" modes. Open the camera-specific screens and look for the GenICam feature called AcquisitionMode. What choices do you see there? |
Ha, I was literally in the process of typing that: This camera does not support any mode besides AcquisitionMode=Continuous. would it be worthwhile to try to add a better check for that? |
Returning an error if one attempts to set a non-supported AcquisitionMode and leaving the mode unchanged would be a good idea. There is already some logic that converts Multiple to Continuous for cameras that don't support Multiple: That section of code could be enhanced to do something similar if Single or Multiple or both are unsupported. I have no way to test that, but I am happy to accept a PR if you want to test it. |
I'm with @MarkRivers on this, instead of automatically switching everything. This is a low-level error as the buffer size mismatch is throwing an error. To do this right, wouldn't we want a "bad buffer" or "error count" readback instead? Or a "last error" string PV? |
Discovered by testing fix for #18 (not related at all, to be clear):
Environment:
Arch: linux-x86_64-debug
EPICS Base 7.0.7
ADGenICam R1-8, master commit 639aa4f
ADAravis R2-3, master commit ebca7d0
Camera: The Imaging Source Europe DMK 33GX174, via gigabit ethernet
Additional Plugins: Only NDStdArrays Image plugin for viewing output array in CS-Studio
Steps to reproduce:
arv-tool-0.8 genicam
per the documentationaravisConfig(portName, aravisCameraName)
Result:
ArraySize_RBV Remains zero. In IOC, the following output occurs:
2023/03/21 15:30:00.404 ADAravis:processBuffer: w: 1920, h: 1200, size: 0, expected_size: 4608000
If ImageMode is set to 'Continuous' the error goes away.
The text was updated successfully, but these errors were encountered: