I'm a new Diadem user and I'm attempting to write a generic script that uses a Diadem Query (user-modifiable) in the Navigator to pull a set of tdms files. This part of the program works, however, I'd like to understand the vb script to load the set of diadem files from the Navigator to the data portal. The vb recorder uses the function "DataFileLoadSel" to load each file from the Navigator Search Results tab into the data portal. The vb recorder creates a call to function "DataFileLoadSel" for each tdms file found by the Navigator. My query pulled 93 tdms files and the vb recorder creates 93 calls instances in the vb script. I'm looking for a more efficient/generic looping script that will read each tdms filename from the search results and with the filepath string, load the content of the tdms file into the data portal. As indicated the looping structure would continue until all files have been loaded.
This seems to be a simple scripting exercise but I'm not finding any examples in the NI website that shows me how to do this in diadem. It would seem that I should be able to with code pull the filename from the search results.