The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 simple interpolation in Origin 8
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

coll@inia.

Spain
125 Posts

Posted - 04/30/2009 :  2:11:25 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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?

Laurie

USA
404 Posts

Posted - 05/06/2009 :  10:58:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

coll@inia.

Spain
125 Posts

Posted - 05/13/2009 :  04:39:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, I'll try it.
sincerely, julio
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000