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: Matt Newville <[email protected]>
To: Bo Jakobsen <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 17 Jan 2017 10:28:39 -0600
Hi  Bo,

On Tue, Jan 17, 2017 at 9:35 AM, Bo Jakobsen <[email protected]> wrote:
Hi all,

I am building an system based on EPICS and Matlab.
The idea of the system is that a "server" is running in Matlab. This server which monitors and manipulates EPICS records according to some logics.
This works very nicely and stable (even as I known that I should properly write it all as seq code, but that is out of the scope of my current project).

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".

Any input will be mostly appreciated

Bo


I do similar things regularly (though not in matlab), running a "server process" on a workstation that really needs to run and that other processes would communicate with via CA. I typically make a simple, small epics database, and include a "TimeStamp" or "HeartBeat" PV that (by convention) is written to only the server process to indicate that it running. I often have both a unix/epics epoch value that might be read by the client to detect a non-responsive server and a human-readable date that is displayed for the user. I think that's essentially what you are thinking, so I can say that this approach works well for me.

Sometimes a seq program is exactly the right thing, but sometimes a standalone server process is what you want.

--Matt


References:
Knowing if a server application is running Bo Jakobsen

Navigate by Date:
Prev: Re: Knowing if a server application is running Andrew Johnson
Next: RE: Knowing if a server application is running 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 Andrew Johnson
Next: RE: Knowing if a server application is running 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