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 of cureve
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

semor

Belgium
1 Posts

Posted - 11/02/2011 :  06:27:02 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Dear all,

I don't have much experience for programming, so sorry if I ask a very easy question. My problem is as follows: I have to calculate the integral of each individual graph shown (drawn from numerical data). But it has to be from y=0 to the minimum of y (so all the negatives y values). (For example, the area shown in the graph) I know how to do this manually (select the range and use the integration button tool), but I wanted to know how I could program it so that I could have more automation as I have a lot of these graphs to analyze.

If someone happens to know how this could be done, it would be much appreciated.

(btw. these type of curves are from cyclic voltammetry measurements, used in the electrochemical characterization of electrodes. The integral I need is called the "cathodic charge storage capacity", used to determine the theoretical charge you could deliver to neurons)

LabTalk user

USA
35 Posts

Posted - 11/02/2011 :  7:30:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Semor,

I to calculate different areas on CV curves using Origin 8.1SR3. The best method, which I currently have implemented, is detailed below.

Use a loop in your main section to loop through every cycle you're processing. Use sections within this loop to find the various values you need. The integ1 x-function is probably your best bet in calculating the area.

If you want some pseudo-code or more detailed coding help let me know.
-Patrick
Go to Top of Page

Drbobshepherd

USA
Posts

Posted - 11/04/2011 :  3:33:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you are not interested in the cummulative values, just the final result, consider using integ1 with the -a option. This performs the integration without creating the temporary dataset _integ_area, which is a running total of the integrated area for each value of x. The integration will run much faster. Also, as with most X-functions, you may want to use the silent option, -s; this keeps the Results window from popping up every time you execute your script.
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