I do that kind of things using LabTalk like follows. I suppose you have two columns of data, named t and P, and that t is X type and P is Y type. Add another one at the end and name it Data1_Q. Then execute the following in the Script Window:
for (ii=1;ii<=wks.maxrows;ii+=1){
integrate %h_P -b 1 -e ii;
%h_Q[ii]=integ.area;
}
This assumes that your t0 value is in the first row.
Jose Via, Origin WebRing member