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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 simple interpolation in Origin 8

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000