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
 Simple 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

bo257

USA
13 Posts

Posted - 06/23/2004 :  5:29:48 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

easwar

USA
1965 Posts

Posted - 06/24/2004 :  1:52:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

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