I wrote a labtalk script to perform fits on an array of about 30x30 spectra, which works perfect with one exemption: For some spectra an error message number 28037 appears indicating that the initial parameter set is not appropriate. No problem, after the fit I set the parameters new if nlsf.cor is < 0.9 and repeat the fit until nlsf.cor is >0.9. How can I suppress the message box and forse the script to go on to the next command automatically. I do not want to hit 20 times the okay button as the script is suppose to run over night.
Who can help me, I would like to stay with lab talk for the moment.
Thanks Martina
crusila part of the script:
nlsf.cleanupfitdata(); //nlsf.msgPrompt=0; //nlsf.msgPrompt=2; nlsf.fitData$ = %r_int$(l); Zaehler=0; repeat 15 { zaehler=zaehler+2; nlsf.simplex(400); type %s; nlsf.xmode = 2; nlsf.funcx$ = %r_lambdac; //use as X dataset nlsf.funccol$ = %r_fit$(l); //dataset to store fitted Y values nlsf.makecurve(func); //dataset generated for the fitted curve If (nlsf.cor > 0.9) {window -cd %h; break; } NLSF.P2=720.0-12+Zaehler; //NLSF.P3=1.27; //NLSF.P4=6000; }