Author |
Topic |
|
joss31
France
33 Posts |
Posted - 05/28/2014 : 05:06:33 AM
|
Origin 6.1 labtalk,
Hi everybody,
I import multiples ASCII files and I plot them in worksheets and in graphs. But now, I want to save the sum of the first three values and detect the next value 0.30 above the last value added, all of that with labtalk.
I think it's possible but I don't find how I can add the frame each other, and how i can add a thresold, in the version 6.1 of origin.
So thank you in advance for your reply.
Joss.
|
|
greg
USA
1378 Posts |
Posted - 05/29/2014 : 12:01:27 PM
|
For basic stats of a range in old Origins you can use something like:
set Data1_B -bs 1; // Temporary begin row = 1 set Data1_B -es 3; // Temporary end row = 3; sum(Data1_B); // Calculate some basic stats sum.total=;
For the rest, you may need a loop or maybe use the list( ) function. |
|
|
joss31
France
33 Posts |
Posted - 06/03/2014 : 05:10:32 AM
|
Thank you
And if i want just plot the second value of my worksheet, on my graph like a label.
How i can do that? |
|
|
greg
USA
1378 Posts |
Posted - 06/03/2014 : 08:59:05 AM
|
valy = Data1_B[2]; valx = Data1_A[2]; // With graph active label -s -a valx valy ($(valx,*4), $(valy,*4));
|
Edited by - greg on 06/03/2014 09:03:39 AM |
|
|
joss31
France
33 Posts |
Posted - 06/04/2014 : 03:18:22 AM
|
ok Thank you very much Greg! It works good. |
|
|
|
Topic |
|
|
|