04-21-2017 04:16 AM
Hi there,
I'm trying to create a VI that will look up a config file in a folder and also search for that file in the subfolders. Unfortunately due to corporate restrictions I am only able to use LabVIEW version 7.1 and I cannot download onto the machine.
I've attempted to look for solutions but I haven't found anything which I am able to do using 7.1. It also doesn't help that I'm very new to using LabVIEW.
Any advice would be appreciated!
Solved! Go to Solution.
04-21-2017 04:28 AM
04-21-2017 08:18 AM
@GerdW wrote:
Hi CTech,
even LV7.1 has (file) functions to list the content of folders.
Use this function to search for files in folders and to collect all subfolders recursively…
Of course, ver 7.1 did not implement "Native Recursion" so, you are going to need to look at the help file to find examples of recursion in LabVIEW 7.1. It is possible but I haven't had a 7.1 install in a very long time and wouldn't want to spend the time digging through a help file I don't need.
04-21-2017 08:36 AM
04-21-2017 10:25 AM
The OpenG File I/O has a List Directory Recursively which is just a while loop recursion. The oldest version in VIPM works on LabVIEW 6.x and newer. 2.8.2 seems to be the newest version that will work in LabVIEW 7.1.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-21-2017 10:53 AM
OK, I was going to contribute these two "pictures" (what's the name of that guy who hates Pictures instead of code?) ...
The second is the function in LabVIEW 7.0 (sorry, don't have LabVIEW 7.1 handy) that you'd put in the Recursive search function, and the first is the Recursive List function that Hooovaah mentioned from OpenG (notice the OpenG = Green color).
Bob Schor
04-24-2017 01:43 AM
Thank you everyone, this is all really helpful!