Spareman
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Spareman
-
-
First off I'd like to apoligise if this has been answered before, but an hours google search came up with nothing.
I am writing a macro to imrpove some instrumentaton in my lab (postgrad) and I need it to do the following basically,
Run experiment (data is saved as Scan.txt)
Take saved data and append the filename with a "1" e.g. Scan1.txt
Run experiment again (new data set saved)
Take saved data and append the filename with a "2" e.g. Scan2.txt
etc.
for about 100 iterations. I think my limited experience is good enough to complete the macro except for the writing of filenames. What I have so far is something along the lines of :-
variable N1 is the iteration variable
Repeat (Repeat 100 times)
Run experiment
Renamefile "Scan.txt" to "Scan + %N1% .txt"
End repeat
Thats basically all I need however the code needed for line 3 is completely lost on me. Any help would be greatly appreciated.
Thanks,
Shane
Append file names
in Macro Express 3.x
Posted
Thank you for the help guys, seems like converting the int to a str will solve the issue!