T O P I C R E V I E W |
coll@inia. |
Posted - 04/30/2009 : 2:11:25 PM Origin 8pro WinXp
I have a fitted Boltzmann curve between Absorbance values in Col(F) as Y and concentrations in col(A) as X. I also have col(B) and Col(C) with different absorbances of samples as Ys. I just want to sustitute the Y values of absorbances by their corresponding concentrantion. My code worked before in Origin 6.1 with the nlsf.funcVal but I cannot make it to work under Origin 8pro!!!
Here is the old code which worked in Origin6.1: for(i=wks.c1;i<=wks.c2;i++) //apply to selected columns and rows {if(wks.isColSel(i)==0) continue; // Skip col if it has no selections for(j=wks.r1;j<=wks.r2;j++) { %(%H,i,j)=$(nlsf.funcVal(%(%H,i,j)));};
Any ideas? |
2 L A T E S T R E P L I E S (Newest First) |
coll@inia. |
Posted - 05/13/2009 : 04:39:39 AM Thanks, I'll try it. sincerely, julio |
Laurie |
Posted - 05/06/2009 : 10:58:25 AM You don't need the $( ) substitution notation. I removed it below:
for(j=wks.r1;j<=wks.r2;j++) { %(%H,i,j)=nlsf.funcVal(%(%H,i,j));};
I suspect though that the problem could be that you are no longer fitting with the NLSF object. Do you have other script that does the Boltzmann fit?
In Origin 8, there is a new set of X-Functions to control the new NLFit dialog. There are many fitting script examples on our website.
Instead of writing a script to do the boltzmann fitting, you may wish to use an analysis template, which just means you reuse the workbook (which has the saved fit analysis), with new data. The recalculate of the analysis in the book is triggered upon data change.
In the NLFit dialog, go to the Advanced Settings and use the Find Specific X/Y. It will create a new worksheet in the book. Click here for more details.
OriginLab Technical Support |
|
|