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
 Origin Forum
 Automation of Integration

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
magr0046 Posted - 11/20/2007 : 08:50:03 AM
Hi all!

I have the following problem:
I took PL spectra (col(A)=wavelength;col(B)=intensity) as a function of the temperature at 44 different temperatures. I am interested in the dependence of FWHM and maximum position from the temperature. Therefore I have to integrate on several series of 44 datasheets. As area, FWHM, maximum intensity and position of maximum intensity are stored in the integ.properties, I wanted to realize the integration by a simple for loop. This is my code

for (n=1 ; n<=5 ; n++){type " $(n) -- integrating data$(n+48)_B data$(n+48)_B[1]=$(data$(n+48)_B[1]) " integrate data$(n+48)_B}

I know, this code might be quite simple compared to what is normally posted, but I don't understand some things: I can read out single datapoints by (e.g.) $(data$(n+48)_B[1], but I dont manage to integrate the data using nearly the same data$(n+48)_B.

Once the integration is performed, I want to put the integ.properties into a new worksheet. I hope this could be realized using something like data1_B[$(n)]=integ.area

So thanks for your opinion.
2   L A T E S T    R E P L I E S    (Newest First)
magr0046 Posted - 11/20/2007 : 09:27:54 AM
Thank you for your short term answer. I inserted the missing semicolon, but the result is still a #command error.

(data$(n+48) is supposed to be a valid worksheet, as I have worksheet names varying from data49 to data90 approx, but I got the command error.

Nevertheless is works sometimes. Thank you for the help.

Edited by - magr0046 on 11/20/2007 12:40:59 PM
Mike Buess Posted - 11/20/2007 : 09:17:10 AM
integrate data$(n+48)_B will work if data$(n+48) is a valid worksheet. Note that your script requires a semicolon ';' before the integrate command.

for (n=1 ; n<=5 ; n++){type " $(n) -- integrating data$(n+48)_B data$(n+48)_B[1]=$(data$(n+48)_B[1]) "; integrate data$(n+48)_B}

quote:
Once the integration is performed, I want to put the integ.properties into a new worksheet. I hope this could be realized using something like data1_B[$(n)]=integ.area
That will work but you don't need to substitute the variable n...

data1_B[n]=integ.area;

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 11/20/2007 09:19:15 AM

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