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
 LabTalk Forum
 Stop Screen Updating While Running Script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mulvenna

Germany
46 Posts

Posted - 05/05/2014 :  04:26:06 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Edited by - Mulvenna on 05/06/2014 10:50:25 AM

lkb0221

China
497 Posts

Posted - 05/19/2014 :  09:52:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Mulvenna

Germany
46 Posts

Posted - 05/19/2014 :  10:08:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

lkb0221

China
497 Posts

Posted - 05/19/2014 :  10:30:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - lkb0221 on 05/19/2014 3:57:21 PM
Go to Top of Page

Mulvenna

Germany
46 Posts

Posted - 05/20/2014 :  05:36:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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