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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 take value from worksheet and detect a threshold

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
joss31 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.


4   L A T E S T    R E P L I E S    (Newest First)
joss31 Posted - 06/04/2014 : 03:18:22 AM
ok Thank you very much Greg! It works good.
greg 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));
joss31 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 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.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000