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
 tool is open
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gilles wat

France
20 Posts

Posted - 12/17/2001 :  12:02:17 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I would like to be able to identify if a tool ( eg baseline, layer..)is open. Any idea?

Mike Buess

USA
3037 Posts

Posted - 12/17/2001 :  3:21:49 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Which version of Origin are you using?

Mike Buess
Origin WebRing Member
Go to Top of Page

gilles wat

France
20 Posts

Posted - 12/18/2001 :  05:14:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I am using Origin 6.1 pro
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 12/18/2001 :  5:55:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I believe that most of Origin 6.1's tools were created with Dialog Builder, in which case dialog.status(DLLName,DialogName) should work. (See Chapter 2.3 of your OriginPro Manual.) Unfortunately, I don't know how to find DLLName or DialogName for dialogs created by someone else (i.e., OriginLab). Sounds like a question for OriginLab's technical support team. (tech@originlab.com)

Mike Buess
Origin WebRing Member
Go to Top of Page

Laurie

USA
404 Posts

Posted - 12/19/2001 :  10:05:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, using dialog.status(DLLName,DialogName) is the way to go. If the dialog is open you'll get a return value of 0.

The DLLName for Origin tools is Tools. The DialogNames are as follows:

Linear Fit Tool --> LR
Polynomial Fit Tool --> PR
Sigmoidal Fit Tool --> SR
Pick Peaks Tool --> PickPeaks
Baseline Tool --> Baseline
Smooth Tool --> Smooth
Layer Tool --> LayerTool
FFT Tool --> FFTTool

For example,

status=dialog.status(Tools,PickPeaks);

Laurie

OriginLab Technical Support
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 12/19/2001 :  12:22:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Laurie! That's useful information.

Mike Buess
Origin WebRing Member
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