06-26-2024 12:17 PM
Hi! I'm trying to have a program where I have a folder of files I need to process sequentially (preserving order) through a subvi and then collect the data for each one, also sequentially. I've seen people say to use the List Folder function and then index through them using either a for or while loop, but I'm not sure how to index them. I'm working on an old version of Labview (7 I think), so maybe some things are kinda weird with that, too.
I'd appreciate any help or insight! 🙂
Solved! Go to Solution.
06-26-2024 03:52 PM - edited 06-26-2024 03:53 PM
"List folder" gives you the path and an array of filenames in alphabetical order (e.g. abc9.txt is after abc10.txt). Of course you can sort any other way (e.g. by modification date, etc.) with a bit more code. Then just autoindex on a FOR loop.
In a nutshell:
06-27-2024 04:14 PM
I love you and thank you so very much. It worked! ❤️ 😄