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
 progress bar
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

coll@inia.

Spain
125 Posts

Posted - 05/19/2011 :  05:38:55 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. prof. Wxp

I need a progress bar which shows up while code is executing over 3 min.

Is there any coding for Origin 8?

Thanks, julio

couturier

France
291 Posts

Posted - 05/19/2011 :  09:31:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can use the break object:

// Initialisation
break.open(Type your text here);
break.min=0; //enter the min value of you counter here
break.max=60; // enter the max value of you counter here
int counter=0; // initialisation of your counter


// each time you need your progres bar to be updated:
counter+=1;
break.set(counter);


// close your progress bar in the end
break.close();

If anything goes wrong inside your code, it will be terminated and your progress bar will stay visible. To close it, you can type
break.close();
in script window or command window
Go to Top of Page

coll@inia.

Spain
125 Posts

Posted - 05/20/2011 :  03:44:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
THANK YOU VERY MUCH!
I manage with your code and that being exemplified in Origin help to insert that counter!!.

I really though it was not possible and simple.

Merci beaucoup!!!, julio
Go to Top of Page

Jenneez

USA
1 Posts

Posted - 05/29/2011 :  10:39:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I also ran into the same glitch...this helps so much thank you thank you thank you so much couturier!

Jenny
Go to Top of Page

abhishekkhare

Switzerland
4 Posts

Posted - 08/06/2016 :  04:19:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks! helped me too

Abhi
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