EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: problem about Channel Archiver
From: Andrew Johnson <[email protected]>
To: Rolf Keitel <[email protected]>
Cc: tech_talk <[email protected]>
Date: Wed, 01 Dec 2004 14:30:00 -0600
Rolf Keitel wrote:

Doesn't the record processing on an output record call the dset->init_record routine during record initialization? Isn't it the device support's responsibility to read back an initial value from the hardware and stuff it into the rval field?

Yes, there is no read() routine for an output device support; it's the device support's init_record() that is responsible for doing the initial value readback from the hardware into RVAL if it can, (or into VAL and returning 2 instead of 0).


If you set PINI to YES and the device support does not provide an
initial rval value, the record is processed after database
initialization, and would write 0 to the hardware, irrespective of what
the hardware currently holds?

Unless the record has a constant value set in the DOL field (which does not require OMSL=closed_loop), or you have an initHook() to a save-restore routine that saved the old VAL before reboot and has already restored it. It also depends whether 0.0 is inside the DRVL/DRVH limits; if not, IVOA and IVOV may also control what happens, and the simulation fields too.



However in general, you probably only want to set PINI on an output record if the device support can do the hardware value read in init_record(), if you have a save-restore initHook() routine, or if the record is in closed-loop mode and you can calculate what its initial value should be.


- Andrew
--
Dear God, I didn't think orange went with purple until I saw
the sunset you made last night.  That was really cool. - Caro


References:
RE: problem about Channel Archiver Dalesio, Leo
Re: problem about Channel Archiver Rolf Keitel

Navigate by Date:
Prev: RE: USB camera into EPICS Heron, M (Mark)
Next: EPICS: from cathedral to bazaar Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: problem about Channel Archiver Rolf Keitel
Next: temperature controllers john sinclair
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  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 ·