From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

vbaiGetInspectionImage too slow response

Good morning,
I'm using cvi 2015, vision 2015 and builder 2015 with windows 10.
After running vbaiRunInspectionOnce, I request the image from the vbai with the vbaiGetInspectionImage function, then save it with the imaqWritePNGFile2 function.
The operation is performed successfully but is definitely too slow.
I write the times to give an idea of the thing:
vbaiRunInspectionOnce (Builder_session, TIMEOUT_LAUNCH); about 0.7 sec.
vbaiGetInspectionImage (Builder_session, NULL, 1, 1, image_snap, & newImage); about 0.7 sec.
imaqWritePNGFile2 (image_merge, picture_file, 500, NULL, FALSE); about 0.7 sec.
These times are long considering that I have to perform 11 different steps.
A colleague who uses the same hardware and same software versions of mine gets the image and saves it in 0.1 sec.

avete suggerimenti per ottenere gli stessi risultati?

Thanks

Luca

0 Kudos
Message 1 of 2
(1,858 Views)

Hi Luca,

you said that your collegue obtains different results with the same HW\SW configuration.

This seems to be strange... are you sure there are no differences between the 2 machines and the code they're executing? i would also say that Windows is a not-deterministic Operating System so the function can take different time on different execution (not fixed jitter).

0 Kudos
Message 2 of 2
(1,781 Views)