LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

List Folder Function not returning all file names

Solved!
Go to solution

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 

0 Kudos
Message 1 of 7
(3,581 Views)

Are you sure they're not all actually there?  Files are listed alphabetically not numerically.  

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 2 of 7
(3,574 Views)

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

0 Kudos
Message 3 of 7
(3,475 Views)

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

0 Kudos
Message 4 of 7
(3,474 Views)
Solution
Accepted by topic author chivasmaniac12

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)

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 5 of 7
(3,471 Views)

I ended up just sorting the array with a "logical sort array" vi I found on the forum.

Thanks,

Ryan

0 Kudos
Message 6 of 7
(3,466 Views)

To make it easier to search and organize - especially for humans - use leading zeroes when naming the files.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 7
(3,447 Views)