Experimental Physics and
| |||||||||||||||
|
Hi all,
On a couple of IOCs, in the st.cmd file I start a number (7 or 9) SNL
programs (well actually each IOC it is the same SNL program – with option +r
and parameterised).
Sometimes one or more random-ish instance fails to connect to
all the PVs and essentially hangs. If I seqStop and restart the
hung sequence program it runs as expected okay.
I have some questions which I hope can get help with.
The output from seqShow is:
Program Name Thread ID Thread Name SS Name
sncControl_Selection 0x32a75a0 sncControl_Selection cycle_magnets
sncControl_Selection 0x32a2d70 sncControl_Selection cycle_magnets
sncControl_Selection 0x32a4580 sncControl_Selection cycle_magnets
sncControl_Selection 0x32a5d90 sncControl_Selection cycle_magnets
sncControl_Selection 0x32aa5c0 sncControl_Selection cycle_magnets
sncControl_Selection 0x32abfe0 sncControl_Selection cycle_magnets
sncControl_Selection 0x32a8a30 sncControl_Selection cycle_magnets
Is there an easy way to tell which instance is which?
Can I some how parameterise the program name, thread name or SS Name?
I tried:
program sncControl_Selection{NAME}
and
ss cycle_magnets{NAME}
in the .stt file but neither would even compile.
I also observed that the initial hang-up can is avoided by adding some
sort of delay between the seq calls, e.g.:
seq (sncControl_Selection,"NAME=SR03ID01, ILK_NAME=SR03II01")
dbl * > /tmp/xx
seq (sncControl_Selection,"NAME=SR04ID01, ILK_NAME=SR04II01")
dbl * > /tmp/xx
seq (sncControl_Selection,"NAME=SR05ID01, ILK_NAME=SR05II01")
dbl * > /tmp/xx
I have seen this on both epics base 3.14.8.2 with seq-2.0.11 on 4 year old
redhawk Linux system and using epics base 3.14.9 with seq-2.0.11 on a newish
CentOs 5.1 system. Any thoughts as to what is happening?
If the only solution is a small delay, is there a standard IOC shell sleep
command I could use instead?
Regards
Andy
Andrew Starritt, Principal Controls Engineer, Australian Synchrotron
800 Blackburn Road, Clayton, Victoria 3168
| ||||||||||||||
ANJ, 31 Jan 2014 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |