EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: Two questions about EPICS record support
From: Andrew Johnson <[email protected]>
To: [email protected]
Cc: [email protected]
Date: Fri, 18 Sep 1998 09:58:08 +0100
J. Frederick Bartlett ([email protected]) wrote:

>   The second difficulty concerns special processing when the field is
> accessed by dbGetField. Some hardware registers have destructive read
> properties; the top of a FIFO stack is one example. This is an
> instance when the hardware register should be read only when there is
> a explicit request for the information and not periodically polled,
> which seems to be the general EPICS philosophy. The problem appears to
> derive from an EPICS assumption that a dbGetField access should not
> cause either record or special processing. I presume that this
> originated in the difficulty associated with returning a value after a
> possibly asynchronous action by the device support level.

I have two suggestions:

1. Would it be possible to have several different record types, one of
which is processed only when the hardware register needs to be read? 
The record set will most likely need to be closely integrated, but this
means you can have several different kinds of processing according to
what you want to do at the time.

2. A possibly better solution might be to make the field which reads the
hardware an array with size one and whatever type you need.  When there
is a get on this field, your record's get_array_info routine is called,
you find out that this particular field is wanted and can go away and
read the hardware.  I haven't actually tried this approach, but I can't
see any reasons why it won't work.

-- Andrew
   ___
 .'   `.	Andrew Johnson, Head of Electronics
/ Royal )	Royal Greenwich Observatory
\ Greenwich	Madingley Road, Cambridge, CB3 0EZ
| Observatory	Tel: +44 1223 374823   Fax: 374700
+----------	WWW: http://www.ast.cam.ac.uk/~anj

References:
Two questions about EPICS record support J. Frederick Bartlett ([email protected])

Navigate by Date:
Prev: Re: Two questions about EPICS record support Tim Mooney
Next: CA at LynxOS/x86 Tatiana V. Salikova
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Two questions about EPICS record support J. Frederick Bartlett ([email protected])
Next: Re: Two questions about EPICS record support Tim Mooney
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·