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
 All Forums
 Origin Forum
 Origin Forum
 double integration

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
netlvov Posted - 10/12/2000 : 8:50:00 PM
Hello!
Frequently, it is required to perform double intergation of experimental spectra because of the first derivative of absorption is recorded. I didn't find relevant function in Origin.
So, I've tried to use script means to solve a problem. I use following sequence of operations:
Steps in spectra integration:
1. Take your data file named, for example,
A9K.
2. Plot line graph.
3. Perform integration.
4. Create new DataSet Data1
5. Copy A9K_A to Data1_A
5. Execute command:

copy _integ_area Data1_B;

6. Take Data1 worksheet.
7. Plot line graph.
8. Repeat item 3.
9. Read and save Area value
from Result window.

May be there is a more direct and correct procedure for this problem? I'll be very thank for advice.

------------------
Sergei Lvov

1   L A T E S T    R E P L I E S    (Newest First)
rtoomey Posted - 10/16/2000 : 4:42:00 PM
Although there isn't a direct way to perform a double integration, the steps you take might be a bit much...

Below is an example of what I would do to get the area value.

  1. Activate the worksheet containing the dataset of interest (data1 in this example).
  2. Run the following script in the Script window:

integrate data1_b;
copy _integ_area temp_b;
integrate temp_b;
result=integ.area

Note: The example assumes the name of the first dataset being integrated is data1_b. It then copies the integrated dataset to a dataset called temp_b (no worksheet is needed - the dataset is hidden automatically). Finally, temp_b is integrated and the area (integ.area) is stored in a variable called 'result'. The way you store the variable is, of course, up to you. You could even store it in a worksheet cell!

Once you have edited the script to your liking, you might try placing the script in an OGS (Origin Script) file. Once the script is in an OGS file you can create a user-defined toolbar button in Origin to run the script anytime your conditions are met! If you are not sure how to do this and are interested, please let me know.

Sincerely,
Ryan Toomey

[This message has been edited by rtoomey (edited 10-16-2000).]


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000