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
 Intersection Gadget to LabTalk script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

elquin

Republic of Korea
7 Posts

Posted - 08/08/2017 :  9:31:34 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

yuki_wu

896 Posts

Posted - 08/08/2017 :  11:13:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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