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

netlvov

Kazan, Russian Feder
1 Posts

Posted - 10/12/2000 :  8:50:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

rtoomey

USA
184 Posts

Posted - 10/16/2000 :  4:42:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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).]

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