TimerFcn in functions
- From: Crypto <crypto@xxxxxxxxx>
- Date: Mon, 25 Jun 2007 21:09:02 +0200
Hi,
I am trying to use a TimerFcn from within a function. The function does not
require or return any values, so it could also be run as a script, but for
performance reasons I think I need it to be a function file.
If I run the file as a standard script file, the timer works as expected.
But when I turn the script file into the function that it should be, the
timer cannot be run.
The timer is supposed to update a wait bar every two seconds in relation to
the amount of data (ftell position inside the data file to be evaluated by
the script/function) processed by the script/function.
t=timer('TimerFcn','waitbar...' etc.)
The timer needs an fid for displaying the wait bar, the filelength of the
datfile and the ftell-position of the file.
The error says that fid is an unknown function/variable.
I have tried to set the fid to global or persistant, but this did not help.
What can I do to make the timer run?
Regards,
Crypto.
.
- Follow-Ups:
- Re: TimerFcn in functions
- From: Gautam Vallabha
- Re: TimerFcn in functions
- Prev by Date: Re: programming a motorized engine
- Next by Date: Re: CORRCOEF and NAN
- Previous by thread: programming a motorized engine
- Next by thread: Re: TimerFcn in functions
- Index(es):
Relevant Pages
|