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  <20082009  2010  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  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CA connection management problem
From: Andrew Johnson <[email protected]>
To: "Owens, PH (Peter)" <[email protected]>
Cc: [email protected]
Date: Thu, 17 Jan 2008 09:34:03 -0600
Owens, PH (Peter) wrote:

-----Original Message----- From: Victor F E Pucknell [mailto:[email protected]]

Here is a simple test using the EPICS caget
Normally it is in a loop using caget every 2 seconds.
If you "quit" the EPICS server then I get a serious failure and the test program is lost somewhere in the ca library

Please delete the "goto START" line from inside the for() loop and try again; the program should not be recreating its CA context just because a channel has disconnected. The CA client library handles disconnection and reconnections itself internally, and by recreating the context every time there's a timeout error you're almost certainly confusing it.


I'm not saying that the library shouldn't be protected from this kind of usage (that's up to Jeff Hill to decide), but your usage is definitely wrong.

- Andrew
--
When a distinguished but elderly scientist states that something is
possible, he is almost certainly right.  When he states that something
is impossible, he is very probably wrong.  -- Arthur C. Clarke

Replies:
Re: CA connection management problem Maren Purves
RE: CA connection management problem Owens, PH (Peter)
References:
CA connection management problem Owens, PH (Peter)

Navigate by Date:
Prev: CA connection management problem Owens, PH (Peter)
Next: RE: CA connection management problem Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: CA connection management problem Owens, PH (Peter)
Next: Re: CA connection management problem Maren Purves
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·