Hi Marius,
If you just want to add in the after fitting script to extract the fitting parameters, you can write some scripts to do it by yourself. To get the result of the fitting, you can use the getnlr X-Function. To set the value to a cell in the worksheet, you can use the cell function. An example shows below:
// for multiple fittings
// get the fitting result, need to output a report
// __Report$ is the current report sheet
getnlr tr:=tt iw:=__Report$;
if(exist(MyParameter)!=2) // create a book for parameters
{
newbook name:=MyParameter option:=lsname;
wks.ncols = 9;
}
else
{
win -a MyParameter;
}
int iRow = wks.maxRows+1; // row for current parameters
for(ii=1; ii<=tt.nsets; ii++) // put parameters to worksheet
{
cell(iRow, 1)$ = tt.Data$(ii).y1$;
cell(iRow, 2) = tt.y0_$(ii);
cell(iRow, 3) = tt.e_y0_$(ii);
cell(iRow, 4) = tt.xc_$(ii);
cell(iRow, 5) = tt.e_xc_$(ii);
cell(iRow, 6) = tt.w_$(ii);
cell(iRow, 7) = tt.e_w_$(ii);
cell(iRow, 8) = tt.a_$(ii);
cell(iRow, 9) = tt.e_a_$(ii);
iRow++; // next row
}
Penn