EPICS Home

Experimental Physics and Industrial Control System


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

Subject: Re: Knowing if a server application is running
From: Bo Jakobsen <[email protected]>
To: Ralph Lange <[email protected]>, EPICS Tech Talk <[email protected]>
Date: Wed, 18 Jan 2017 14:01:21 +0100
Thanks for all the input, many nice solutions
as always many ways to achieve the wished result.

I ended op with the solution below which matches my level of EPICS'ing nicely.

Best
Bo

On 2017-01-17 19:49, Ralph Lange wrote:
There are several ways to do that.

One that I have been using (and that is similar to Mark Rivers' suggestion) is a dead-man-switch setup:

A calc/calcout record is set up as always counting down, with SCAN e.g. set to 1 second and a CALC of e.g. "VAL>0?VAL-1:0".
The LOW and LOLO fields can be used to set a yellow and red alarm.
The monitored-system (e.g. your Matlab service) resets the timer regularly by e.g writing a 10 into the calc record every couple of seconds.
Using a calcout record the OUT link can be used (with OOPT set as "Transition to Zero") to trigger something when the service is dead.

This only needs a single record (EPICS database golf hole-in-one!), doesn't have to handle counter overflow situations, allows for a yellow and red alarm, lets the client freely decide for how long it will snooze, and is quite robust with respect to slightly irregular write intervals of the monitored-system (e.g. if the service is under high load). 

Cheers,
~Ralph



References:
Knowing if a server application is running Bo Jakobsen
Re: Knowing if a server application is running Ralph Lange

Navigate by Date:
Prev: RE: problem connecting serial device with moxa 5150A Mark Rivers
Next: RE: problem connecting serial device with moxa 5150A Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Knowing if a server application is running Ralph Lange
Next: Help regarding siemens S7 200 smart communcation Arnab Dasgupta
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024