EPICS Controls 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  <20152016  2017  2018  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  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Question about device support
From: Michael Davidsaver <[email protected]>
To: [email protected]
Date: Fri, 26 Jun 2015 11:24:27 -0400
On 06/26/2015 10:42 AM, Florian Feldbauer wrote:
> Hey Michael,
> 
> thanks for the quick answer.
> Looking at your code, I'm doing in principal the same.
> Instead of having a special flag I'm setting PACT = true
> as Ralph suggested.
> 
> But even when I use your method with the sync flag
> I have the same problem:
> The device supports updates RVAL of the bo,
> but VAL is not changed.
> Do I have to set VAL explicitly from device support in this case?

Yes.

The logic in the process() function of boRecord assumes that VAL updated
before processing begins (as is typical of output recordtypes) and
updates RVAL from VAL before calling into device support.

Since you are doing something different you'll need to set VAL yourself.

https://github.com/epics-base/epics-base/blob/3.16/src/std/rec/boRecord.c#L224

In my example I do this for aoRecord

https://github.com/mdavidsaver/pscdrv/blob/master/coreApp/src/devPSCSingle.cpp#L194


References:
Question about device support Florian Feldbauer
RE: Question about device support Mark Rivers
Re: Question about device support Florian Feldbauer
RE: Question about device support Mark Rivers
Re: Question about device support Florian Feldbauer
Re: Question about device support Ralph Lange
Re: Question about device support Florian Feldbauer
Re: Question about device support Florian Feldbauer
Re: Question about device support Michael Davidsaver
Re: Question about device support Florian Feldbauer

Navigate by Date:
Prev: RE: IOC without iocsh Allison, Stephanie
Next: RE: IOC without iocsh Mooney, Tim M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Question about device support Florian Feldbauer
Next: Re: Question about device support Jani Hakala
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·