Code covered by the BSD License  

Highlights from
Status / progress indicator

5.0

5.0 | 7 ratings Rate this file 26 Downloads (last 30 days) File Size: 3.11 KB File ID: #5912
image thumbnail

Status / progress indicator

by Marcel Leutenegger

 

23 Sep 2004 (Updated 18 Jan 2007)

A simple progress bar indicating the current status, the elapsed time and the remaining time.

| Watch this File

File Information
Description

Statusbar is a simple GUI to display the progress of a lengthy computation. It displays the current state and the elapsed time as well as the estimated time to finish.

On confirmation, the user can interrupt the computation by closing the window. At every update, the application program is signaled if it should stop or continue.

Statusbar minimizes processor load by updating only if either the elapsed time or the progress changed (i.e. at most once per second or 0.4% advance).

Acknowledgements
This submission has inspired the following:
statusbar3, statusbar2, Wavelet Subband coding for speaker recognition
MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
28 Sep 2004 reaz reaz

Excellent

05 Oct 2004 Azaria Bialik

It's really good if you should run on values of a known vector in loop

14 Dec 2005 Marek Wójcikowski  
02 Feb 2006 M R

Very Nice Job!

31 Mar 2006 Niko Vloeberghs

Works fine but occasionally, when hitting the Continue button, it throws the following exception:
java.lang.NullPointerException
at sun.awt.windows.WInputMethod.dispatchEvent(Unknown Source)
at sun.awt.im.InputContext.dispatchEvent(Unknown Source)
at sun.awt.im.InputMethodContext.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

I'm using Matlab v7.0.0 R14

27 Jun 2006 Wolfgang Putschögl

Very nice. But as in the original waitbar if I switch to another window and then back to the statusbar window I don't see any content until the next update of statusbar in my programcode. In lengthy calculations this might take some time.

29 Apr 2007 Sean M

A great tool! I don't like how the close request function is set up to keep you from being able to close the status indicator though. Sometimes I interrupt my simulation and start it over again, and the old, defunct status bar won't go away automatically, so to get around not being able to close it i have to use delete(statusbar). But overall, great job!

04 Dec 2007 John Henkel

Beautiful. Drop it in, and it works. Great job!

17 Jul 2011 Ali Awalehh

Well It would be Nice to show how to use the status bar, than just watching it

Please login to add a comment or rating.
Updates
19 Jul 2006

Substituted CPUTIME by NOW for compatibility with MATLAB 7.x.

18 Jan 2007

Added a switch to show/hide all or a specific status bar. A hidden status bar does consume even less processing time because no redraw is needed. Also useful to hide client status bars in nested processing routines.

Tag Activity for this File
Tag Applied By Date/Time
gui tools Marcel Leutenegger 22 Oct 2008 07:31:52
example Marcel Leutenegger 22 Oct 2008 07:31:52
progress status Marcel Leutenegger 22 Oct 2008 07:31:52
bar Marcel Leutenegger 22 Oct 2008 07:31:52
length Marcel Leutenegger 22 Oct 2008 07:31:52
computation Marcel Leutenegger 22 Oct 2008 07:31:52
gui Marcel Leutenegger 22 Oct 2008 07:31:52
computation Jerzy Nowakowski 12 Apr 2009 14:15:45
example thomas 10 Jan 2011 07:44:29

Contact us at files@mathworks.com