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
 Origin Forum
 Integrate many curves in one graph
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

odai85

Jordan
3 Posts

Posted - 12/25/2018 :  12:52:38 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello everybody,

How can I do an integration (area under a curve) of many curves for a specific interval (0 to 1, 0 to 2, and 0 to 3) in the same graph, and saving the results in one table?
The graph is attached.

NB: The data are available in one workbook and different worksheets and I have individual CSV file for each curve if needed.


Thanks in advance.

Odai




Odai

Edited by - odai85 on 12/25/2018 01:13:02 AM

yuki_wu

896 Posts

Posted - 12/25/2018 :  04:11:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Odai,

You could use Integrate Gadget to do that:
1. Active the graph and select Gadgets: Integrate
2. Click the triangle button to select Preference
3. Specify the range in ROI box tab
4. Check Output: Output Quantities to: Append to Worksheet checkbox and specify the output sheet
5. Click OK button
6. Click the triangle button to select New Output for All Curves

More info, please have a look at this page:
https://www.originlab.com/doc/Origin-Help/Gadget-Integration

Regards,
Yuki

OriginLab
Go to Top of Page

odai85

Jordan
3 Posts

Posted - 12/27/2018 :  12:30:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi yuki,
Thank you for your answer.

Actually, I know this method, however, I have many curves which means I need more than a week to get my results!

Do you know how to do it automatically?

Best regards,


Odai
Go to Top of Page

yuki_wu

896 Posts

Posted - 12/27/2018 :  01:18:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Odai,

I am sorry that I cannot understand your question. The method I mentioned above can output the result for all curves in the graph. Not sure if you want to do that via scripts.

If yes, you might want to know more about the X-Function and how to loop over each curve:
https://www.originlab.com/doc/X-Function/ref/Integ1

https://www.originlab.com/doc/LabTalk/guide/Looping-Over-objs#Looping_Over_Graphic_Objects

Regards,
Yuki

OriginLab
Go to Top of Page

odai85

Jordan
3 Posts

Posted - 12/27/2018 :  03:45:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi yuki,

Thank you so much.
Yes, I need to do it using the script commands. I will try to do it using the provided links

Best regards,


Odai
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