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

jmb22

USA
Posts

Posted - 10/02/2006 :  01:38:50 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: WinXp
Here is what I need the script to do:

1) I have a series of dat files with I(V) curves. So, two columns: first column (V=bias voltage) second column (I=current). The files are
named "filenameXX.dat", with XX being a number from 00 to 99. Each
of these files has been recorded at a different gate voltage Vg.
The index XX corresponds to the gate voltage Vg.
2) I want to copy all the files in a single origin worksheet (called alldata) as follows.
First column being the Bias voltage (I), the other columns being the current measured at different gate voltages Vg.
And the first raw of the column contains the value of Vg

3) I need to convert it into a matrix and generate a contour plot.

The other thing I need to do is the same but after derivating the I(V)
curves (dI/dV). So it would be the same, but each individual file should be
called, derivated and smoothed before put them into a single file.

It would be nice if the script contains command for drag and drop i.e when I drag and drop the file filenameXX.dat:
a) a folder named XX is created
b) a worksheet with the index XX is created and the file content is copied into it.
c) a worksheet derivXX is created and the derivative is copied into it.
d) when the last worksheet is dropped or "ALLDATA" is filled, the counterplot of the data and of the derivative of the data is created.

Thank you for your help.

I can provide data file is needed.

JM

CStorey

Canada
137 Posts

Posted - 10/06/2006 :  12:51:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi JM,

Sorry, I doubt you will get someone to do this for you. Not that it's hard to do, but you don't simply submit requests for scripts to this forum. LabTalk scripts are a do-it-yourself thing. The forum is for people to get help with the scripts they are writing. You can look around and find examples of everyhting you need to accomplish this task.

If you need help once you start writing the script then you can post your attempt here, and I'm sure people would be kind enough to help you along.

As a start here's how you can import the files you need...

[Import_N]

system.debug=16; //Debugging type statments print to the Results Window
echo = 1; //Repeat Statements where errors occur

#!type "*** Import Multiple ASCII files at once ****"; //Type this statement ifsystem.debug>0

%L="Default path to search for data files in.";

FDLOG.DlgName$="Select files for Gummel plot.";
FDLog.ShowComment=0;
FDlog.path$=%L;
FDlog.numtypes=3;
fdlog.type1$=[DAT files]*.DAT; //Use wildcards in multiopen dialog to select file types
fdlog.type2$=[TXT files]*.TXT;
fdlog.type3$=[All files]*.*;
FDlog.defType=1; //Focus on *.DAT files first
FDlog.multiOpen.sort=0;

if(FDLog.MultiOpen()!=0/0) //If the OPEN dialog does not exist
{
loop(ii,1,FDLog.MultiOpen.Count) //Loop over all files selected (#=FDLog.MultiOpen.count)
{
win -t wks origin; // Open a new temporary Worksheet for each ASCII file
FDLog.Get(A, ii); //Get the filename to open into %A
open -w %A; //Import the data into the worksheet
#!type "Opened File: %A"; //Report name of imported file


>>>> Insert your code to manipulate the data here! >>>>

};

>>>> Insert your code to take derivatives and plot the data here! >>>>


};
Return;


Craig Storey
Origin WebRing Member - http://g.webring.com/hub?ring=originwebring
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