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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Python
 Controlling Recalculate button via Embedded Python
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rkpara10

United Kingdom
7 Posts

Posted - 03/14/2021 :  6:56:48 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Chris D

428 Posts

Posted - 03/15/2021 :  09:00:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

rkpara10

United Kingdom
7 Posts

Posted - 03/15/2021 :  5:51:32 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, Chris. Yes, that's worked for me.

Regards,
Raees
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000