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
 Forum for Python
 select and merge the data

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
ulhong84 Posted - 07/28/2022 : 04:52:28 AM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:OriginPro 2002 (9.9.0220)

How can I select the data and merge the data in new worksheet?
For example, I have 5 worksheet and want to select the data in 5th column and merge the 5 data in one new worksheet?

Please help ~~
3   L A T E S T    R E P L I E S    (Newest First)
minimax Posted - 08/02/2022 : 01:17:42 AM
Labtalk is not a kind of python language, but Origin's own script language.

Origin's python package supports calling Origin's script.

In the sample code it is called by the command lt_exec().

I suggest XF since it seems to provides the result as you need.
ulhong84 Posted - 08/01/2022 : 8:43:00 PM
quote:
Originally posted by minimax

Hi

How about using Labtalk(XF) script inside python? like

import originpro as op
wp=op.find_book()
wp.lt_exec(f'wAppend -r 2 irng:=[{wp.name}](1!5,2!5) ow:=[<new>]<new>;')


https://www.originlab.com/doc/X-Function/ref/wAppend



I am a beginner of python. So I don't fully understand the above code.

Do I have to put the sheet or book name in this line of {wp.name}??
Also, do I have to write the name of new sheet in <new>?

Could you explain more detail?


minimax Posted - 07/28/2022 : 05:58:38 AM
Hi

How about using Labtalk(XF) script inside python? like

import originpro as op
wp=op.find_book()
wp.lt_exec(f'wAppend -r 2 irng:=[{wp.name}](1!5,2!5) ow:=[<new>]<new>;')


https://www.originlab.com/doc/X-Function/ref/wAppend

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