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
 Controlling Recalculate button via Embedded Python

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
rkpara10 Posted - 03/14/2021 : 6:56:48 PM
Hello

How can I update an auto recalculate mode activated Analysis Template via Embedded Python for each iteration?

Details:

I created an Analysis Template and set the recalculate mode as auto before saving the template. Then, I wrote a code in Embedded Python to send data into Origin. When I send data to col A & B of the Analysis Template, I want to recalculate col C before the code goes to the next iteration.

Note: At the moment the Analysis Template only updates after completing all iterations. But, I want to do this in each iteration.

I might be looking for a command/function equivalent to the 'Run()' command in the OriginExt package. But, I cannot find a similar command/function in originpro package.

Any help/support would be greatly appreciated.

Thanks,
Raees

Origin Ver: 2021
Operating System: Windows 10 HOME
2   L A T E S T    R E P L I E S    (Newest First)
rkpara10 Posted - 03/15/2021 : 5:51:32 PM
Thanks, Chris. Yes, that's worked for me.

Regards,
Raees
Chris D Posted - 03/15/2021 : 09:00:06 AM
After adding data to the template, use this code to force the operation to run.

# Wait for analysis operation to complete.
op.wait()


Let me know if this works for you.

Thanks,
Chris Drozdowski
Originlab Technical Support

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