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
 curve.smoothPts problem

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
ovanesov Posted - 07/10/2012 : 3:51:25 PM
Origin Ver. 8.5 PRO and Service Release (Select Help-->About Origin):
Operating System: Windows 7 and XP

Hello,

I cannot change the value of curve.smoothPts. I have a very complicated LabTalk script (thousands of lines) and complicated Origin Project. Whenever I try to change curve.smoothPts either through the script or through a command window (e.g., curve.smoothPts=7;), it stays the same (=5).

Other curve commands work fine, e.g., "curve.result$="

When I enter the same command (curve.smoothPts=7;) in a new "clean" Origin Project, it works just fine.

Same problem on multiple computers under different user names.

Any ideas?

Thanks
1   L A T E S T    R E P L I E S    (Newest First)
ovanesov Posted - 07/10/2012 : 6:34:59 PM
Update: I tried similar scripts and files in Origin 7.5 - same problem. My guess is that "curve" may not work properly in newer Origin versions.

I tried using X-function "smooth" instead, and it worked. Please see my solution below. Does it make sense?

kkk=1;
smooth1HalfdX=3;

/*
// old version before 7/10/12 - does not work
curve.data$=%(TempDiffer,kkk);
curve.result$=%(DatThrombin,kkk);
curve.i1=-1;
curve.smoothpts=smooth1HalfdX*2+1;
curve.adjave();
*/

// new version with X-function 7/10/12
npts1 = smooth1HalfdX*2+1;
range r1=[DatThrombin]Sheet1!wcol(kkk);
range r2=[TempDiffer]Sheet1!wcol(kkk);
smooth iy:=r2 oy:=r1 meth:=aav npts:=npts1;

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