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
 Integration for multiple Graphs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Voeluspa

Germany
2 Posts

Posted - 02/01/2016 :  10:08:47 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic

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!

jasonzhao

China
262 Posts

Posted - 02/03/2016 :  03:35:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - jasonzhao on 02/03/2016 03:42:40 AM
Go to Top of Page

Voeluspa

Germany
2 Posts

Posted - 02/03/2016 :  11:00:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
It's working :)
Thank you so much!!
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