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
 Origin Forum
 Labtalk code execution and import wizard
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

oszkoa

Hungary
47 Posts

Posted - 10/02/2007 :  10:50:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System: XP Prof

Hi all,

There is a possibility to execute a given labtalk code as the finishing step of using Import wizard. This code should be written or copied into a window serving for this purpose. In my case this code contains a simple equation the coefficients of which should be overwritten from measurement to measurement. So I have to step through the different stages of the wizard to get to the final page. It would be very convenient to store the script in an *.ogs file and modify it in a script window. Is it possible to reference somehow this script file in the window where the labtalk code in import wizard should be written?
Another thing: Baseline tool behaves in a weird manner. It finds only one or two peaks on a curve that contains multiple peaks. The problem is not the peak properties settings on the Peaks tab of baseline tool since other peaks matching those limits are found. Using the Tools/Pick peaks window means no difficulties, all peaks are found.

Best regards: oszkoa

Mike Buess

USA
3037 Posts

Posted - 10/02/2007 :  12:27:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use run.section() to run a particular script in an OGS file. (Look for Run object in the index of your programming guide.) Editing the script file with each use still sounds quite cumbersome. You can use LabTalk's Getnumber command or Origin C's GetNBox to ask for new coefficient values. For example,

getnumber
(coefficient 1) c1
(coefficient 2) c2
(coefficient 3) c3
(coefficient 4) c4
(Enter new coefficients);
c1=; c2=; c3=; c4=;

(In that example the getnumber command has six lines and only the last line ends with a semicolon.)

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 10/02/2007 12:28:38 PM
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