[Date Prev][Date Next][Date Index]

Re: BESSRC experience with Spec/Epics




Guy Jennings wrote:

>  However, on all the times that I
> tried to reproduce the problem explicitly, by writing a loop macro that
> calls reconfig repeatedly, then it didn't manifest itself.  Perhaps if 
> such
> a macro were left running for a week or so?

Putting 'reconfig' in a loop will have no affect.  Two commands in 
spec, 'reconfig' and 'savstate', aren't executed immediately.  When 
either command is encountered, spec sets a flag.  When the highest 
level statement block is completed, but before spec issues a new 
prompt, if the corresponding flag is set, the hardware is reconfigured 
or the state file is written out.  Multiple instances of either command 
in a statement block will result in the command being executed only 
once.

If you want to run 'reconfig' repeatedly, create some_file that 
contains a thousand lines with the text 'reconfig', then 'do some_file'.

Gerry