LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analyze multiple images

Solved!
Go to solution

Hi,

 

My goal: To measure a certain dimension on many images sitting in a folder

What I can do: Write a VI that prompts the user to choose the image file, opens it, measures the desired dimension within a specified region of interest

What I need: A VI that gets the image from a specified folder, does the measurement, then gets the second images (without prompting the user), does the measuremen, then gets the third image (without prompting the user), does the measurement, and so on until all the images are measured.

 

How do I do this?

 

Below is my simple VI that does what I need, but only for one image at a time. There should be a relatively easy way of modifying my VI so it does what I described above. Thank you for you help!

 

 

0 Kudos
Message 1 of 3
(2,993 Views)
Solution
Accepted by topic author HA1975

You can simply take your code and surround it all with a for loop, but keep the File Dialog function outside this loop. Then, right click the File Dialog function and select Properties - deselect the "limit selection to single item" option. This will allow your user to select more than one file from the dialogue box (they can use the CTRL key to multi-select). The result will now be an array of paths, instead of one path. The array of paths should auto-index into the for loop, performing your code for each file selected by the user.

 

You may want to add a 'next' button or at least a short pause inside the loop if you want your users to be able to see the results of each analysis otherwise it could whizz through too fast to see it! 🙂

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 2 of 3
(2,988 Views)
Thank you very much. That seemed to do the trick!
0 Kudos
Message 3 of 3
(2,955 Views)