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
 Origin Forum
 AfterFitting code: Compatibility 8.5.1 / 8.1

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
millot.marius Posted - 10/25/2011 : 7:32:51 PM
I just upgraded to 8.5.1 from 8.5.
i cannot use an after fitting code that works under 8.1 to extract fit results data in a worksheet
see code below


it looks like no new wks is created ...

any thought ?

Many thanks


if(exist(Rubyfit)!=2)
{newbook name:=Rubyfit sheet:=1 option:=1 chkname:=1;

Rubyfit!wks.col1.name$= Dataset;

Rubyfit!wks.col2.name$= Peak1t;

wks.addcol();
Rubyfit!wks.col3.name$= width 1;

wks.addcol();
Rubyfit!wks.col4.name$= Peak 2;

wks.addcol();
Rubyfit!wks.col5.name$= width 2;

wks.addcol();
Rubyfit!wks.col6.name$= P;

wks.addcol();
Rubyfit!wks.col7.name$= Pressure;
}

// Get the tree from the last Report Sheet (this fit)
getresults iw:=__REPORT$;

// Assign ranges to the two columns in 'Rubyfit'
range ra1 = [Rubyfit]1!1;
range ra2 = [Rubyfit]1!2;
range ra3 = [Rubyfit]1!3;
range ra4 = [Rubyfit]1!4;
range ra5 = [Rubyfit]1!5;
range ra6 = [Rubyfit]1!6;
range ra7 = [Rubyfit]1!7;

// Get the current row size and increment by 1
size = ra1.GetSize();
size++;

// Write the Input data range in first column

ra1[size]$ = ResultsTree.Input.R2.C2$;

// and the Peak Center value in the second

ra2[size] = ResultsTree.Parameters.xc.Value;
ra3[size] = ResultsTree.Parameters.w.Value;
ra4[size] = ResultsTree.Parameters.xc__2.Value;
ra5[size] = ResultsTree.Parameters.w__2.Value;
ra6[size] = (ra4[size]-694.28)/0.365;
ra7[size] =int(ra6[size]*10)/10;


col(6)[U]$ = GPa;

col(7)[U]$ = GPa; col(2)[U]$ = nm; col(3)[U]$ = nm;



Origin Ver. and Service Release (Select Help-->About Origin): 8.5.1
Operating System:xp

1   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 10/26/2011 : 10:52:41 AM
Hi,

You have posted the same question both in this general Origin forum and in LabTalk forum. Your post in LabTalk forum has been replied, and this thread is not necessary to be continued.

--Hideo Fujii
OriginLab

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