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
 Accessing and treating data in analysis template

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
LennartR Posted - 03/20/2020 : 04:32:33 AM
Dear all,

I created an analysing template in origin, where I import an multiple ASCII-files of the same structure. These files need to be analysed and data is plotted. Therefore, I created an additional workbook where I access colums of the imported data by defining a variable in such way:
range var1 = [Book1]"Sheet1"!col("Example")
It works fine so far with the expection that I have to adapt the book name (since its changing its name by duplicating) every single time I duplicate the folder to perform the analysis on a different data set. That requires quite some manual work.
Is there a more handy way to perform that task?

Additionally, I'd like to perform average values + std. dev. of cells of multiple columns. I had only figured out to do this by applying teh formula e.g. 1/2*(var1+var2). Unfortunately, the number of ascii-files varies and I have to adapt the formula manually as well. Any tips on that?

Thank you very much for your help!
Lennart

Origin Ver. and Service Release: OriginPro 2019b
Operating System: Windows 10
1   L A T E S T    R E P L I E S    (Newest First)
YimingChen Posted - 03/20/2020 : 3:00:16 PM
Hi,

1. Anytime you create a workbook. You can use %H to get the current workbook name. So you can define range like:
range var1 = [%H]"Sheet1"!col("Example")


2. If the number of columns varies, you can always use wks.ncols to get the number of columns and loop over all columns and do averaging.

James

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