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 for Programming
 LabTalk Forum
 take value from worksheet and detect a threshold
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

joss31

France
33 Posts

Posted - 05/28/2014 :  05:06:33 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic

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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

joss31

France
33 Posts

Posted - 06/03/2014 :  05:10:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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?
Go to Top of Page

greg

USA
1378 Posts

Posted - 06/03/2014 :  08:59:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

joss31

France
33 Posts

Posted - 06/04/2014 :  03:18:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
ok Thank you very much Greg! It works good.
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