Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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