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.
- Activate the worksheet containing the dataset of interest (data1 in this example).
- 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).]