T O P I C R E V I E W |
semor |
Posted - 11/02/2011 : 06:27:02 AM 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) |
2 L A T E S T R E P L I E S (Newest First) |
Drbobshepherd |
Posted - 11/04/2011 : 3:33:00 PM 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. |
LabTalk user |
Posted - 11/02/2011 : 7:30:35 PM 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 |
|
|