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
 Princton Instruments *.spe File

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
TinaLED Posted - 09/01/2004 : 09:17:08 AM
Origin Version (Select Help-->About Origin): V. 7.5 SR1
Operating System: Windows 2000

I have different Labtalk scripts for analysing Princeton instruments files. A typical example for the file import I currently use is given below. Up to now I fist have to transform the *.spe Files into ascii Files by the PI software which is time consuming as it could be several thousand files in one run. I would like to import Princton Instrument *spe Files directlyd using the Princton instruments import filter, you supplied. How can I do this within Lab Talk. I am not familliar with Origin c yet.
I also need the calibration data from the notes window (part of the .spe-header). Is there any way to access lines of the notes window?

Example of a script to import the converted ascii files:
// Prconditioning of the Worksheets
window -t data d:\_daten\oritemp7\SPECCD7_5.otw;
window -r %h Zeile$(k);
window -a Zeile$(k);
ii=1;
wcol(1)=data(ii,1340,ii);
col(Lambdac)=mlambda*(col(lambdac))+clambda; //calibration pixel --> wavelength, should be 2nd order polynom

// Loading of the ascii files for different sample positions within a matrix of k rows and l columns

getfile -m *.txt; // here *.spe would be better
window -t data d:\_daten\oritemp7\SPECCD7_3.otw;

for (ii=1;ii<=count; ii++)
{
getfile -g ii;
open -w %a; // here we would like to open the spe Files with the spe-Filter
// extraxting sample position in with in a columns x rows grid
j=%[%h]-1;
%n=%[%h,2:j];
%l=%[%n,'x'];
%k=%[%n,>'x'];
l=%l+1-Spalte1; //column
K=%k+1-Zeile1; //row
%n=%h;
%(files,l,k)="%n";
window -a Zeile$(k);
wks.addcol (int$(l));
%h_int$(l)=%n_int;
};

Who has experience with user-defined import filters and can help me,
Tina
2   L A T E S T    R E P L I E S    (Newest First)
TinaPLI Posted - 09/01/2004 : 12:48:16 PM
Thanks a lot, I sent you e-mail with the data.
regards, Tina

easwar Posted - 09/01/2004 : 10:15:38 AM
Hi Tina,

The SPE import utility that you got from our File Exchange area uses the User-Defined Filter mechanism of the Import Wizard feature in version 7.5. What we did was to create a user-defined/custom filter, which runs Origin C code to import the SPE file.

There could be multiple ways to solve your problem. One would be to slightly modify our SPE filter by adding LabTalk code to the tail end of the filter to perform post processing of the imported data, and getting info from the Notes window etc. Another could be to modify the Origin C code that we wrote to include the custom processing in that code itself.

I think the first option - adding LabTalk code to the end of the filter will work. Best would be if you can send us your OTW worksheet template, and also one data file and we take a look at how to modify the filter for your need. Please send the files to tech@originlab.com and please mention this forum post in your message.

Easwar
OriginLab


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