alliedvision / VimbaPython

Old Allied Vision Vimba Python API. The successor to this API is VmbPy
BSD 2-Clause "Simplified" License
93 stars 40 forks source link

how to change Device Link Throughput Limit parameter in Vimba Viewer? #149

Open Lucas-Mantuan opened 1 year ago

Lucas-Mantuan commented 1 year ago

Hello! I'm facing an issue with AlliedVisionCamera USB3, Model: 1800 U-1240c.

I was trying to grab images using NI MAX (is a packag in the installation of LabVIEW). I selected the Vimba Driver in NI MAX to the software recognize the USB3 Camera model, and I was able to see the detected camera, as you can see in image below: Screenshot_11

But when I click on grab button, is displayed the following message:

Screenshot_10

If I click on SIM (Yes) button, NI MAX ignore camera validation errors and try to grab the image, but I have an uncompleted image displayed, as shown below:

Screenshot_12

I tried to change the Device Link Throughput Limit parameter in Vimba Viewer, but was not successful and as you can see there are some inconsistencies: the minimum value of this parameter is greater than the maximum value.

Can you tell me how I can change this parameter? I believe that the incorrect parameterization of this parameter is the reason for the error I am facing.

Screenshot_13

Screenshot_9

Lucas-Mantuan commented 1 year ago

May you advice me how to reset vimba to manufaturer parameters?

Teresa-AlliedVision commented 1 year ago

Hello, this is not a problem regarding "How to set the parameter", but that the camera connection is recognized as a USB2 connection. Either your cable, USB port or maybe switch could be the error source. The minimum throughput limit comes from what Pixel Format and SensorBitDepth you have set, because the sensor needs a certain datarate to be read out. The maximum comes from what USB connection/USB speed is recognized from the host. Your host/swich/cable is recognized as USB2, so the maximum datarate is lowered. This also explains the incomplete frames, because the datarate is not enough for the camera and data is getting lost.

To remedy the issue:

To set the camera to the default settings, you can use the device reset feature or unplug/plug the camera.

If you need to use a USB2 connection, make sure that you use a 8bit pixel format and, if possible, use 8bit ADC (so 8bit SensorBitDepth). That will lower the minimum datarate and could enable you to send frames. However, the camera is a USB3 device and a USB2 connection can cause unwanted behaviour, lie with the mismatched upper and lower end of the datarate, due to the settings of pixel format.

Lucas-Mantuan commented 1 year ago

Teresa, thank you for your comprehensive response.

We have just updated the Windows system and the camera acquisition has started working as expected.