Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing image sequences - issues with nested for loops

Solved!
Go to solution

Hi all,

 

I've written a vi. to capture a specific number of images ('Image No') and save these images, outputted to a folder of my choice.  Each image is identified sequentially.  However, I wish to do a number of iterations ('Run') of this capture sequence, such that the filename of each image would be 'Filename (Run)_(Image No).png', e.g. run 5, image 10 would be 'Filename 5_10.png'.  I have tried a nested for loop for this but I receive an error 'Asynchronous I/O operation in progress' (I've attached a printscreen).

 

Can anyone assist me in solving this problem?  Please find attached my vi.

 

Kindest regards and thanks,

Miika

Download All
0 Kudos
Message 1 of 3
(3,124 Views)

Hi,

You cannot create a folder if this one is already existing.

Just check that the folder exists before creating it.

create folder.png

 

Regards

NTA_LabView_certified_Developper.jpg
0 Kudos
Message 2 of 3
(3,098 Views)
Solution
Accepted by topic author CP Miika

Hi toto26,

 

Thank you for your reply.  I solved the problem by using a flat sequence structure - folder in first frame and all subsequent processing in the second. 

 

Regards,

Miika

0 Kudos
Message 3 of 3
(3,089 Views)