lgermann
Hey,
We run some in situ measurements on a Bruker D8 machine. We'd like to export the data from the single .raw file into separate .xy files. Usually we do that (manually) via an .inp file:
xdd "name.raw"
range n
Out_X_Yobs(name.xy)
We are currently trying to transform that into a macro (as it not convenient to it for several hundred of patterns manually):
xdd "name.raw"
macro file_name(o){name-##o.xy}
macro Extraction(o)
{
range ##o
}
Out_X_Yobs(file_name)
TOPAS either does not recognize the running index ##o and just puts -o in the name or I get the error
"
range 5
*** Macro recursion debth greater than 12 and thus a possible infinite loop
Trying to open C:\Users\germann\Desktop\Ganter\Extraction.inx instead
"
Has anybody a smart idea how to solve that problem? :)
Many thanks,
Luzia
alancoelho
In Version 6:
num_runs 100
xdd FILE.RAW
range Run_Number
Out_X_Yobs(FILE##Run_Number##.xy)
In Version 5:
macro Extract(r)
{
xdd FILE.RAW
range r
Out_X_Yobs(FILE##r##.xy)
}
Extract(1)
Extract(2)
Extract(3)
...
lgermann
It works, thanks a lot Alan :)