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: Andrew Johnson <anj@aps.anl.gov>
To: Bo Jakobsen <lister@f77.dk>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Tue, 17 Jan 2017 10:22:22 -0600
Hi Bo,

On 01/17/2017 09:35 AM, Bo Jakobsen wrote:
> My problem is now that I would like to indicate to the user if the
> Matlab server is running or not through an EPICS record.
> 
> My thought was to periodically (e.g. at least ones per second) update a
> soft record from the Matlab server. But how can I from EPICS test if
> this has happened. It could e.g. be a time stamp, or a "running number".

 From the EPICS perspective your Matlab "server" is a CA client.

The APS uses a recordtype called runcontrol which has an associated
client-side library for controlling client access to subsystems, and as
part of its functionality it has a watchdog to confirm that the CA
client is still running. This may be a bit overkill for what you want,
but it might give you some ideas and you might even be able to reuse the
recordtype.

You can find some information about these in these tech-talk messages:
  http://www.aps.anl.gov/epics/tech-talk/2010/msg00554.php
  http://www.aps.anl.gov/epics/tech-talk/2010/msg00555.php
You'll probably want to start with the manual referenced from the second
message.

HTH,

- Andrew

-- 
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon

References:
Knowing if a server application is running Bo Jakobsen

Navigate by Date:
Prev: Knowing if a server application is running Bo Jakobsen
Next: Re: Knowing if a server application is running Matt Newville
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: Knowing if a server application is running Bo Jakobsen
Next: Re: Knowing if a server application is running Matt Newville
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 ·