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
 Simple 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
bo257 Posted - 06/23/2004 : 5:29:48 PM
Hi,
I'm just starting to learn the programing in OriginLab.
I would like to write a script that will perform the following job:

1) Enable drag and drop of ascii files in the origin workstation.
My files are usually named: IV_3B-16_01 where "IV_" is generic to all files, and only the parts "3B-16" and "01" change.
2) Generate a worksheet with the appropriate label for each of the column
Column 1 label = Bias Voltage (mVolts)
Column 2 label = Tunneling Current (microAmps)
The name of the worksheet shall be named like the file.(for example: IV3B1601)
3) Create a folder "IV_Characteristics", and a subfolder "3B-16", where the worksheet will be placed.
4) Create 2 new columns on the worksheet with the following labels:
Column 3 label = Smoothed
Column 4 label = Conductance
5) Fill the column called "smoothed" with the data from the Adjacent Averaging Smoothing(20points) of the data of column 2.
6) The 4th column gives the first derivative of column 3 versus column 1.

For the plotting of the data, I will ask you later, as it is a little bit more difficult to explain what I really want. Meanwhile, I'll try to get as much information as possible on your website.

PS: Could you give me a link where I can find Labtalk scripts examples, and also a list of common commands.

Thanx for your help

J-M
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 06/24/2004 : 1:52:14 PM
Hi J-M,

Do you have the latest version, 7.5?
If yes, I suggest you first start looking at the Import Wizard. This wizard allows you to walk thru one of your files and create a filter for importing that file type, which then can be re-used to import multiple files via drag-and-drop, without having to do any programming.

You can use a custom worksheet template with the import wizard filter so that your data comes into worksheets that have appropriate number of columns etc.

Furthermore, in the import filter, you can also include LabTalk script that does additional post-processing of your imported data, such as smoothing it, creating a new subfodler, and moving the sheet to that subfolder etc. An edit box to type in script for post-processing is available on the last page of the wizard. You can refer to the help file for further information on using the import wizard.

As for programming help, one place to start would be:
http://www.originlab.com/index.aspx?s=9&lm=+71

Easwar
OriginLab


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