Open clara-not-claire opened 1 month ago
Hi, just a idea: Can you please try to reduce the DeviceLinkThroughputLimit, or better, use the BandwithManager to check if you can reach a stable state?
And can you explain why you wait for 2 sec before the RetrieveResult?
Describe what you want to implement and what the issue & the steps to reproduce it are:
System Goal: Our goal is to have 2-4 cameras connected to capture images displayed on a screen simultaneously. The image is displayed, and the cameras acquire images sequentially, then the next image is displayed with the process in a loop over all the images we want to capture. We want the system to be able to capture a ~50k image dataset. The system should at least be able to capture 2000 images in one sitting without timing out or requiring manual resetting.
Current Issue: Currently, we can only capture between 90-400 images before the cameras time out with the following error:
How we've debugged: We've switched out the cables to make sure timeout wasn't a cable issue and checked our hardware. On the software side, we followed the Basler tutorials on how to write our code, tried extending timeout time, manually set framerate/buffers and implemented garbage collect inside the loop to make sure it wasn't a buffer issue, etc yet the same timeout issue persists.
Support: I've attached our original code below. We use the pygame package to display our images. Are we implementing our capture loop in the correct way? Is there a better, more elegant way to do so that doesn't result in timeout? I've looked at all existing support requests and couldn't find anything similar. We aren't trying to do hardware triggering and shouldn't need software triggering(?). I've read about eventHandlers from other requests but am not quite sure how it fits in. Any help with the code, best practices, and resolving the issue is appreciated!
Is your camera operational in Basler pylon viewer on your platform
Yes
Hardware setup & camera model(s) used
Two Basler Dart daA1920-160uc cameras connected to a USB hub, connected to M1 Macbook Air/Pro. A tablet monitor is also connected to the laptop via HDMI.
Runtime information: