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; |
|
|