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
 X function levelcrossing in 2015 versus 2016

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
Nilsdalby Posted - 04/07/2016 : 4:25:16 PM
OriginPro 2015 SR2 and OriginPro 2016 SR2 on win 10 platform

Hi

Im having problems with the X-function levelcrossing which im using several times in a script that works fine in Origin 2015 SR2 but not in 2016 SR2. A few lines of code:

loop(i,4,10){
range rr=wcol(i);
col(Threshold)[i]=rr($(col(IntersectX1)[i]));
levelcrossing iy:=wcol(i) level:=$(col(Threshold)[i]) xindex:=ldsindex oy:=ldsx;
};

The problem in the above is the 4th line using levelcrossing. Here it determines intersection of traces in columns (wcol) with individually determined thresholds (level) and stores the result in two loose datasets (ldsindex and ldsx). Levelcrossing used as a single line (no loop) works ok in version 2016.

What is the problem with this in 2016 SR2 ? Any help appreciated, thanks
2   L A T E S T    R E P L I E S    (Newest First)
Nilsdalby Posted - 04/09/2016 : 02:29:50 AM
Hi Hideo

That solved it, many thanks
Hideo Fujii Posted - 04/08/2016 : 11:48:17 AM
Hi Nilsdalby,

The level option takes the double number, so probably you don't need $(....) in:
level:=$(col(Threshold)[i])
Hope this solves the problem.

--Hideo Fujii
OriginLab

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