Hi Randy,
Here's one suggestion:
The FileNameGet function can allow the user to select multiple files if you specify the FileDlgASCIIName optional parameter. What this does is it stores the files selected in a .lst file. You can then use this file to easily iterate through your files. The example below uses what's called a serial evaluation. You can read more about this in the DIAdem help but basically if there's a .lst file in the same directory as my vbs file with the same name then I can use a special variable called UseFileList. DIAdem will automatically execute my code multiple times each time putting a different value in UseFileList.
Here's some sample code:
This will involve 2 vbs files. They must both be in the same directory.
You can call the first one anything but the second one MUST be called File.vbs. This is because it must have the same name as the .lst file which my script calls File (you could change this).
File one:
Call DataDelAll ' clear all DATA channels
Call FileNameGet("Any","FileRead", "*.txt", "",AutoActPath & "File", True) 'Dialog box for entering filename
If (DlgState = "IDOk") Then 'Close dialog box with OK
Call ScriptStart(AutoActPath & "File.vbs")
Else
Call MsgBoxDisp("Data loading terminated!")
continue = false
End If
Next File (this one must be called File.vbs)
Call ASCIILOAD (UseFileList,0)
(You can add in here code to do the analysis and load the report. This code will be repeated for every file. If you want code to only happen once put it in the first file.)
I hope this helps!!
Please let me know if you have any further questions.
Regards,
Sarah Miracle
National Instruments