#pragma rtGlobals=3 // Use modern global access method and strict wave access. #include | Peak Measurement Experiment V1.2 (modified for Edith. Molenbroek) #include Menu "Macros" "GetFromLabview" "FitWithGuess" End Macro GetFromLabview() Variable counter, strcounter, numberrows, row, bee, me, cme String filename, listofnames, wavesname, forminus String/G trynamelist, xwaveslist String frame_list, runname, path, graphname Silent 1 NewPath /O path Counter=0 filename=IndexedFile(path,counter, "????") Do If (CmpStr(filename,"")==0) print "Break - - No files in folder" break EndIf LoadWave/O/G/P=path/N filename | ********************* Begin Parse ********************** filename=LowerStr(filename) strcounter=0 Do If ((char2num(filename[strcounter])<97)*(char2num(filename[strcounter])>57)) filename[strcounter,strcounter]="_" Else If ((char2num(filename[strcounter])>122)+(char2num(filename[strcounter])<48)) filename[strcounter,strcounter]="_" EndIf EndIf strcounter=strcounter+1 While (strcounter