Dear all,
I'm writing LabView VIs for a Basler USB camera (model acA1920-155um). I'm acquiring triggered frames in pairs For each image in the pair I use IMAQdx Grab2.vi followed by IMAQdx Get Image Data.vi where I specify the buffer number. (See mockup screenshot below). It's important that the frames are sequential, and I hope to avoid any dropped frames.
Unfortunately if I compare the 'requested' buffer index and the 'actual' buffer index, they sometimes disagree (example screenshot attached). The requested and actual frames differ by 2 in the included example, though trying this several times the difference can be as large as about 20.
Other details:
- I'm using 64-bit Windows 10 with LabView version 17.0.1f1 and NI-IMAQdx version 17.0.0
- I tried different options for IMAQdx Configure Acquisition.vi, including 'Snap', 'Sequence', and 'Grab'. I can't tell if these actually affect the performance, and the problem happens in each case.
- If I enclose the attached code in a For loop, and start each iteration with the last buffer number, the 'requested' and 'actual' buffer numbers agree for a time (even if the 'requested' and 'actual' buffer numbers disagreed in the previous iteration).
Do you have some recommendations for how to fix this?
Thanks for your help!