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
 labtalk

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
jmb22 Posted - 10/02/2006 : 01:38:50 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
CStorey Posted - 10/06/2006 : 12:51:42 PM
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

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