new user here, but i'd hazzard a guess that ticks, startMSTimer and stopMSTimer are the functions you would want to look at. tossing zeros into a loop would have variable results on different systems, after all.. ;)
new user here, but i'd hazzard a guess that ticks, startMSTimer and stopMSTimer are the functions you would want to look at. tossing zeros into a loop would have variable results on different systems, after all.. ;)
Sleep is the operation you want. I was making a joke about tossing extra loop iterations in somewhere :-).
new user here, but i'd hazzard a guess that ticks, startMSTimer and stopMSTimer are the functions you would want to look at. tossing zeros into a loop would have variable results on different systems, after all.. ;)
Andy's right- use Sleep. These functions are more for measuring elapsed time, not for pausing execution.
For updating a graph in a running loop I would use DoUpdate,e.g., for visualizing the progress of a calculation.
Or do you want to do some animation using a time base?
HJ
For updating a graph in a running loop I would use DoUpdate,e.g., for visualizing the progress of a calculation.
Or do you want to do some animation using a time base?
HJ
That is exactly what I wanted to do. Thank you so much!
BTW, if you know how to create some animation, I would be glad to have some basic hints. I'm always willing to learn, specially when I know I'll be using this soon.
Thanks a lot!
BTW, if you know how to create some animation, I would be glad to have some basic hints. I'm always willing to learn, specially when I know I'll be using this soon.
When your goal is to scroll through a set of traces to make a movie, you might consider the Scroll Traces package as a start.
http://thedailywtf.com/Articles/The-Speedup-Loop.aspx
August 9, 2012 at 04:24 pm - Permalink
August 14, 2012 at 02:02 am - Permalink
Sleep is the operation you want. I was making a joke about tossing extra loop iterations in somewhere :-).
August 14, 2012 at 03:00 am - Permalink
Andy's right- use Sleep. These functions are more for measuring elapsed time, not for pausing execution.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
August 14, 2012 at 09:21 am - Permalink
Hi,
May this be used to update a graph if put in a loop?
Here is my code:
wave NameRun
wave svx,sy
variable numrun
string strsvx,strsy,strfit
for (numrun=0;numrun<numpnts(NameRun);numrun+=1)
strsvx="cnvx"+num2str(NameRun[numrun])
strsy ="cnsy"+num2str(NameRun[numrun])
strfit ="fit_cnvx"+num2str(NameRun[numrun])
duplicate/O $strsvx svx
duplicate/O $strsy sy
duplicate/O $strfit fit_cnvx
print strsvx
sleep/s 1//PauseUpdate; Silent 10
endfor
End
I already have my graph window opened (
Display svx vs sy;append fit_cnvx
).Thank you
February 25, 2017 at 06:05 am - Permalink
DoUpdate
,e.g., for visualizing the progress of a calculation.Or do you want to do some animation using a time base?
HJ
February 25, 2017 at 10:59 am - Permalink
That is exactly what I wanted to do. Thank you so much!
BTW, if you know how to create some animation, I would be glad to have some basic hints. I'm always willing to learn, specially when I know I'll be using this soon.
Thanks a lot!
February 25, 2017 at 11:04 am - Permalink
(Or in the manual Volume IV -> Advanced {Programming IP6 /Topics IP7} -> Movies
HJ
February 25, 2017 at 02:29 pm - Permalink
When your goal is to scroll through a set of traces to make a movie, you might consider the Scroll Traces package as a start.
http://www.igorexchange.com/project/ScrollTracesPanel
You can add a plug-in to the package to generate movies from the traces.
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
February 26, 2017 at 06:42 am - Permalink