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
 X function levelcrossing in 2015 versus 2016
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Nilsdalby

Denmark
23 Posts

Posted - 04/07/2016 :  4:25:16 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Hideo Fujii

USA
1582 Posts

Posted - 04/08/2016 :  11:48:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Nilsdalby

Denmark
23 Posts

Posted - 04/09/2016 :  02:29:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hideo

That solved it, many thanks
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