LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

imaq image file saving taking forever

I have a program that moves a translation stage, then takes 10 images, moves the stage again and repeats.  I take 10 images as to average them as the CCD detector is noisy.  The program works fine, but it is horribly slow.  For a small AOI the program runs reasonably quickly, but as the size scales up the time quickly gets unruly.  I have attached the code, does anyone have an idea of how to make the program run faster?

0 Kudos
Message 1 of 2
(2,136 Views)
Hi Sleepingawake86,

In the GetSingleImage.vi are you using an IMAQ functions?  Have you been able to isolate that the problem is the write file or could it be the acquisition when the image gets too large?  

For the saving of the image, have you considered a Producer Consumer architecture?  This would help you to reduce the number of times that you will have to open and close the spreadsheet.  This is a similar to the suggestion made in here to one of your previous posts about speeding up the read from spreadsheet file vi. 
Regards,
Kira T
0 Kudos
Message 2 of 2
(2,115 Views)