T O P I C R E V I E W |
coll@inia. |
Posted - 05/19/2011 : 05:38:55 AM 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 |
4 L A T E S T R E P L I E S (Newest First) |
abhishekkhare |
Posted - 08/06/2016 : 04:19:47 AM Thanks! helped me too 
Abhi |
Jenneez |
Posted - 05/29/2011 : 10:39:29 PM I also ran into the same glitch...this helps so much thank you thank you thank you so much couturier!
Jenny |
coll@inia. |
Posted - 05/20/2011 : 03:44:40 AM 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 |
couturier |
Posted - 05/19/2011 : 09:31:26 AM 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 |