Argonne National Laboratory

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  <2017 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
<== Date ==> <== Thread ==>

Subject: Re: Knowing if a server application is running
From: Ralph Lange <ralph.lange@gmx.de>
To: Bo Jakobsen <lister@f77.dk>, EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Tue, 17 Jan 2017 19:49:56 +0100
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


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

Navigate by Date:
Prev: Re: Set env var for target when building Hugo Slepicka
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  <2017
Navigate by Thread:
Prev: RE: Knowing if a server application is running Mark Rivers
Next: Re: Knowing if a server application is running Bo Jakobsen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
ANJ, 14 Feb 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·