EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Starting multiple SNL programs
From: "Andrew C. Starritt" <[email protected]>
To: "EPICS Tech Talk ([email protected])" <[email protected]>
Date: Wed, 18 Mar 2009 11:42:09 +1100
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
ph: (03) 8540 4164 , fax: (03) 8540 4200
mailto:[email protected] http://www.synchrotron.org.au
 
 
 
This message and any attachments may contain proprietary or confidential information. If you are not the intended recipient or you received the message in error, you must not use, copy or distribute the message. Please notify the sender immediately and destroy the original message. Thank you.
Replies:
Re: Starting multiple SNL programs Emmanuel Mayssat

Navigate by Date:
Prev: GPIB/ASYN user port data Andrew C. Starritt
Next: Building Epics 3.14.10 on Linux Sue Witherspoon
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: GPIB/ASYN user port data Andrew C. Starritt
Next: Re: Starting multiple SNL programs Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·