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
 curve.smoothPts problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ovanesov

USA
2 Posts

Posted - 07/10/2012 :  3:51:25 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

ovanesov

USA
2 Posts

Posted - 07/10/2012 :  6:34:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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;
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