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
 Handling multiple sheets in a workbook

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
mitsous Posted - 01/05/2016 : 08:56:04 AM
Origin Ver. 9 and Service Release (Select Help-->About Origin):
Operating System: Win 7

Hello and happy new year. I' m new in origin and forum as well and my problem is:

I have two sets of 300 measurement files of two columns each i.e
Device1: 300 files of two columns each ...col1 for voltage and col2 for capacitance

Device2: 300 files of two columns each ...col1 for voltage and col2 for capacitance

I need to subtract for each sheet the capacitance of the two devices. I was trying to build a loop to copy to a new workbook the columns of capacitance for both devices so to make a workbook with 300 sheets but no luck...Any ideas?
Thanks
5   L A T E S T    R E P L I E S    (Newest First)
jasonzhao Posted - 01/07/2016 : 10:16:53 PM
Hello,

Please refer to this page for further information:

http://www.originlab.com/doc/LabTalk/ref/Document-cmd#-e_object_.7Bscript.7D.3B_Execute_the_given_script_for_all_objects



Best regards!
Jason
OriginLab Technical Service
mitsous Posted - 01/07/2016 : 2:53:42 PM
It's working!!!!
Thank you very much

one more question: which is the usage of doc -e W?
jasonzhao Posted - 01/06/2016 : 9:27:15 PM
Hello,

Because Origin has a maximum sheet number in a workbook of 255;
How about make 2 new workbooks with 150 sheets each, and in every sheet have 3 columns
The process can be done by LabTalk;
Please see example below:


//create new book with 3 sheets (small number for test)
newbook name:="MyData" sheet:=3;

//loop through each sheet
doc -e lw{
// add 1 column for each sheet
wks.addCol(1);
}

//loop through each sheet in 3 books
loop(ii,1,3) {
      range rW = [MyData]$(ii)!2;
      range r1=[Book1]$(ii)!2;
	  range r2=[Book2]$(ii)!2;
//perform arithmetic operation on specific column
      rW=r1-r2;
}


Best regards!
Jason
OriginLab Technical Service
mitsous Posted - 01/06/2016 : 11:11:44 AM
Thanks for the quick answer..
The process is this:

1) Import 2 workbooks of 300 sheets each corresponding to measurements of two devices. Each sheet has 4 columns, voltage, capacitance, time
and capacitance derivative with respect to voltage. I have already built those two workbooks with the template method.

2) From these two workbooks I need to make a new workbook with 300 sheets and in every sheet must have 3 columns, time, capacitance derivative of device 1 and capacitance derivative of device 2.

3) For each sheet subtract the capacitance derivatives columns.

Voltage varies from -4 to 4 Volts, as well as capacitance and time. I think that first of all a colcopy routine must be done
jasonzhao Posted - 01/06/2016 : 04:55:45 AM
Hello,

Would you please further explain about the process?
I think you want to:
1. Import all the files into a workbook with 300 sheets
2. Make data process, which is subtract for each column in sheet the capacitance of the two devices
3. The capacitance of the two devices is a const number.
Is that the procedure?


Best regards!
Jason
OriginLab Technical Service

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