Feed variable value into progress bar?
PeterR
I have an issue with a progress bar I am trying to display in my panel while a loop is running.
The code for my
ValDisplay
in appearance of a bar is as follows:ValDisplay valdispProgress,pos={11,448},size={856,12},frame=2,limits={0,100,0}, barmisc={0,0}, value=progress
The problem is, that I get an compile-failure because Igor does not like the
value=progress
statement. The variable
progress
is modified by one of the loops started from the panel and I am not able to hand it's value to the progress bar...I already tried accessing the Variable
progress
by making it a global variable and declaring it directly in the panel:NVAR progress=root:progress
But this gives me an error - probably because Variables cannot be declared in panels...
How can I acccess my Variable from the panel?
Thanks in advance,
Peter
value=_NUM:your_latest_value_here
all the time. Also I am not sure if it is a good idea to use this approach while a loop is running. Can you maybe use a background task to do your task?June 16, 2014 at 06:40 pm - Permalink
Cool, will try that!
June 17, 2014 at 08:08 am - Permalink
value=#"root:progress"
June 27, 2014 at 04:59 pm - Permalink