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
 Intersection Gadget to LabTalk script

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
elquin Posted - 08/08/2017 : 9:31:34 PM
Origin Ver. and Service Release (Select Help-->About Origin): 2015 (64bit) Sr2
Operating System: Windows 7

I'm using Intersect gadget, but there's problem.
I have lots of data to find intersection btw. two lines (over 100) and it may be done periodically.
What I have to do is load data to worksheet and find first intersection point, then record those to Report worksheet.
Please let me know how to control intersect gadget by script.
1   L A T E S T    R E P L I E S    (Newest First)
yuki_wu Posted - 08/08/2017 : 11:13:31 PM
Hi,

You should use Gadget Object.

// Execute XF to create gadget on the graph
addtool_curve_intersect trGUI.output.script:=0 trGUI.output.wksName:=[Result]Sheet1;
gadget gg = rect;  //Declare LT gadget variable
gg.expand();//expand ROI to full range
gg.output();//output result at current position

More details about the Gadget Object and the addtool_curve_intersect X-Function:
http://www.originlab.com/doc/LabTalk/ref/Gadget-obj
http://www.originlab.com/doc/X-Function/ref/addtool_curve_intersect

Hope it helps.

Regards,
Yuki
OriginLab

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