T O P I C R E V I E W |
Voeluspa |
Posted - 02/01/2016 : 10:08:47 AM Hello, I'm trying to write a script to analyse my data faster. (One Data set contains 25 Graphs), but I'm a raw recruit :/ I made it to smooth the data and I need to integrate each graph in a certain area (baseline: endpoints line).
I use
plotxy iy:=(1,2:end) plot:=200
to plot the data (which works fine) and
int ix1:=xindex(0.005%c); int ix2:=xindex(0.018%c);
range rr=(%c)[$(ix1):$(ix2)]; integ1 rr baseline:=1; integ1.=;
to integrate it. Problem: The Integration is only carried out for one of the Graphs, but not for all 25. How can I change it so that in the "result-Window" the result for each graph is shown?
Thanks in advance for any help! |
2 L A T E S T R E P L I E S (Newest First) |
Voeluspa |
Posted - 02/03/2016 : 11:00:26 AM It's working :) Thank you so much!!
|
jasonzhao |
Posted - 02/03/2016 : 03:35:18 AM Hello,
You may need to use this script for looping:
doc -e d { /// Code for the loop's body here ///%C the dataset name in each iteration. }
Please refer to this page for further information: http://www.originlab.com/doc/LabTalk/ref/Document-cmd#-e_object_.7Bscript.7D.3B_Execute_the_given_script_for_all_objects
Best regards! Jason OriginLab Technical Service |