06-30-2017 09:27 AM
Hello
I am having an issue with the List Folder Function. It is only returning the 1, 10th, 100th, 1000th and then 1001,1002.... image files within a folder. Does anyone know why i am having this issue? I have used this function before and have not run into this problem. I have attached a picture of the array of file names that is being returned and my VI.
Thanks
Solved! Go to Solution.
06-30-2017 09:36 AM
Are you sure they're not all actually there? Files are listed alphabetically not numerically.
07-10-2017 09:59 AM
It looks like you are correct that all the image files are there. They are just not in numerical order. Is there an easy way to put the files in numerical order?
Thanks,
Ryan
07-10-2017 10:02 AM
It looks like you are correct that all the image files are there. They are just not in numerical order. Is there an easy way to put the files in numerical order?
Thanks,
Ryan
07-10-2017 10:08 AM - edited 07-10-2017 10:12 AM
search for a numeric sort of string array on the forum and you'll get plenty of hits (you might want to also consider sorting 2d array of string)
07-10-2017 10:21 AM
I ended up just sorting the array with a "logical sort array" vi I found on the forum.
Thanks,
Ryan
07-10-2017 12:10 PM
To make it easier to search and organize - especially for humans - use leading zeroes when naming the files.