The Mathematica Journal
Departments
Download This Issue
Home
Feature Articles
Graphics Gallery
Tricks of the Trade
In and Out
Columns
The Mathematica Programmer
New Products
New Publications
Classifieds
Calendar
News Bulletins
Editor's Pick
Mailbox
Letters
Write Us
About the Journal
Staff and Contributors
Submissions
Subscriptions
Advertising
Back Issues

SetNotebookStatusLine

Theodore Gray (theodore@wolfram.com) writes: I find the SetNotebookStatusLine packet to be a useful way to monitor progress. For example, to have Mathematica display the progress of your calculation, evaluate the following input.

[Graphics:../Images/index_gr_174.gif]

Now, the current value of status will be displayed in the status area (bottom left-hand corner of the notebook). This method is a lot faster than Print, and it doesn't mess up your notebook with spurious output. As long as you're not sending more than a few packets per second, it should not significantly affect the speed of your calculation. Here is a simple example.

[Graphics:../Images/index_gr_175.gif]

The If test causes the status to be set only every tenth time through the loop, avoiding wasting time updating the status too frequently. You may wish to adjust this parameter depending on the calculation and the speed of your computer.


Converted by Mathematica      September 30, 1999 [Prev Page][Next Page]