| T O P I C R E V I E W |
| tinkusch |
Posted - 08/02/2004 : 06:06:38 AM Hi, there is a peculiar problem with the labtalk comand curve.SGSmooth() in Origin Pro 7.0 (B522 SR4, with German WIN98)
my script looks like this: curve.data$=SOURCE_C; curve.x$=SOURCE_X; curve.result$=RESULTS_B; curve.polydeg=3; curve.smoothleftpts = 25; curve.smoothrightpts = 25; curve.SGSmooth();
I now expected the execution of smoothing over 51 points of Source_c, but instead, Origin sets curve.smoothleftpts and curve.smoothrightpts back to the default value of 2 prior to execution of the smoothing, and then performs the smoothing over 5 points only!
The only way to execute smoothing with preselected value for the smoothranges seems to be the selection via the Origin-Analysis-Smoothing menue. Once these values are set "by hand" they remain unchanged after repeated smoothing. But, of course that is no solution, because I would like to do the selection automatically via the labtalk script.
Any explanation or hint?
Thanks
Stefan
|
| 2 L A T E S T R E P L I E S (Newest First) |
| tinkusch |
Posted - 08/02/2004 : 11:28:01 AM Hi Mike, thanks!
anyway, it seems a bit strange to me that one has to set the left and right hand no of points as well as the total no of points.....
|
| Mike Buess |
Posted - 08/02/2004 : 10:55:24 AM Hi Stephan,
Alter your script like this...
curve.data$=SOURCE_C; curve.x$=SOURCE_X; curve.result$=RESULTS_B; curve.polydeg=3; curve.smoothleftpts = 25; curve.smoothrightpts = 25; curve.smoothpts = 51; // total smoothing pts curve.SGSmooth();
The default value of curve.smoothpts is 5 so leftpts and rightpts are reset if you forget to change it.
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 08/02/2004 11:09:17 AM |
|
|