Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Another Monitor problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Hannes Kessler  
View profile   Translate to Translated (View Original)
 More options 8 Nov, 12:26
Newsgroups: comp.soft-sys.math.mathematica
From: Hannes Kessler <HannesKess...@hushmail.com>
Date: Sun, 8 Nov 2009 12:26:50 +0000 (UTC)
Local: Sun 8 Nov 2009 12:26
Subject: Another Monitor problem
Hello,

is it possible to monitor the intermediate state of a calculation with
Monitor inside the action argument of a Button? The following Monitor
example without a Button works:

Monitor[Do[i, {i, 10^7}],  Refresh[Pause[0.03]; i, UpdateInterval ->
0.01]]

However, when the calculation is started by a Button only the final
result is displayed, the intermediate state of the calculation is not
monitored:

Button["Run",  Monitor[Do[i, {i, 10^7}],   Refresh[Pause[0.03]; i,
UpdateInterval -> 0.01]]]

Best regards,
Hannes Kessler


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Albert Retey  
View profile   Translate to Translated (View Original)
 More options 10 Nov, 11:09
Newsgroups: comp.soft-sys.math.mathematica
From: Albert Retey <a...@gmx-topmail.de>
Date: Tue, 10 Nov 2009 11:09:54 +0000 (UTC)
Local: Tues 10 Nov 2009 11:09
Subject: Re: Another Monitor problem
Hannes Kessler schrieb:

I think it is as often the Method option which will make the Button do
what you want:

Button["Run",
 Monitor[Do[i, {i, 10^7}],
  Refresh[Pause[0.03]; i, UpdateInterval -> 0.01]],
 Method -> "Queued"]

hth,

albert


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google