Hi,
I alway get an #Command error when trying to use the FITLR command within Labtalk.
The code in question is attached to this post. It should fit the colums line by line to the rot values given in the code. Everything except the "fitlr" command works fine. Even if I put "fitLR iy:=(10,11)" into the command window it gives the #command error.
Did i do anything wrong at this command? I do not understand why it does not work because I used the exact spelling given in the origin help.
rot = {3000,2500,1500,900,400,200};
range rSheet = 1!;
rSheet.AddCol(kotlev);
rSheet.AddCol(stdDev);
rSheet.AddCol(sqrtrot);
rSheet.col10.type = 4;
rSheet.AddCol(worstfit);
range aa = rSheet.Col(2), bb = rSheet.Col(3), cc = rSheet.Col(4), dd = rSheet.Col(5), ee = rSheet.Col(6), ff = rSheet.Col(7);
range kotlev = rSheet.Col(kotlev), stdDev = rSheet.Col(stdDev), sqrtrot = rSheet.Col(sqrtrot), worstfit = rSheet.Col(worstfit);
loop(ii, 1, aa.GetSize()){
sqrtrot = sqrt(rot);
loop(jj, 2, 7){
temp = wcol(jj);
worstfit[jj-1] = temp[ii];
}
range fit = (10,11);
fitlr i := fit a := kotlev[ii];
//kotlev[ii] = fitlr.a;
//cell(4,ii) = fit[1];
}