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
 LabTalk Forum
 Stop Screen Updating While Running Script

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
Mulvenna Posted - 05/05/2014 : 04:26:06 AM
Origin Ver. and Service Release (Select Help-->About Origin): Origin Pro 8.6.0
Operating System: Windows 7

Hi,

I was wondering is there a command to stop the screen updating? For example, at the beginning of a script, disable screen updating, carry out all the relevant commands, then once this is complete update the screen.

In Excel VBA it is possible to use Application.ScreenUpdating = False

I have a very large script file to analyze data and this would improve my running time by a substantial amount.

Kind Regards,
C. Mulvenna
4   L A T E S T    R E P L I E S    (Newest First)
Mulvenna Posted - 05/20/2014 : 05:36:51 AM
Thanks, that does speed things up a bit.

Yes, this is something I've been thinking about trying! I think I've reached LabTalk's limits and would benefit from Origin C! It will be quite a big conversion though, I have some 200,000 lines of LabTalk code already up and running for my analyses.

Time to get learning again and converting

Thanks again for the help.

Regards,
Conor
lkb0221 Posted - 05/19/2014 : 10:30:01 AM
Hi,

You can probably hide the data plot by layer -hp command (or by layer -h to hide the whole layer if axis involved), do the customization and then show it again.

Or you can consider using Origin C for scripting.

Zheng
OriginLab
Mulvenna Posted - 05/19/2014 : 10:08:09 AM
Thanks Zheng!

But does the graph page not have to be active to change graph properties though?

For example, updating axes scales, cmap properties, line and sysmbol properties, adding labels and adding tables.

Is there a way to carry out such commands without the page being active?

Regards,
Conor
lkb0221 Posted - 05/19/2014 : 09:52:46 AM
Hi,

I'm afraid we do not have this option yet.
But the graph will not be updated until you activate it again. So an workaround is to active a workbook, do all the analysis and then active the graph to see the different.

Zheng
OriginLab

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