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
 Origin Forum
 Labtalk code execution and import wizard

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
oszkoa Posted - 10/02/2007 : 10:50:00 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 10/02/2007 : 12:27:04 PM
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

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