EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  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  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Power Supply Record?
From: Maren Purves <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Thu, 15 Nov 2007 08:42:20 -1000
Dirk Zimoch wrote:
Luedeke Andreas wrote:

Usability:
you will read back a current and a voltage from the power supply.
Is HOPR/LOPR the display range for the current or the voltage?
Of course you can have an IHOP/ILOP and VHOP/VLOP, but since there is just one function get_graphic_double, no standard display will be able to use those fields context sensitive.
The same applies to ADEL, MDEL, HIGH, HIHI, LOW, LOLO, ....

Actually, get_graphic_double gets a DBADDR* argument which references the field, not the record. Thus, it is possible to provide different values for different fields. But one has to do this. Many existing records already failed to implement this correctly (e.g. calc uses the same HOPR, LOPR, PREC, EGU for fields A,B,C,... as for VAL, motor uses the same PREC for ERES as for VAL, ...)


I agree with Andreas: Better not add another "generic" mega-record which at the end is more restrictive than generic. At least not until real object oriented inheritance is implemented for records.

Same here ...


We're thinking of going with generic records for motor control again
for similar reasons and to not use the motor record for our next
(current, upgrade from non-EPICS) project.
If you have a generic schema for all devices of the same sort you can
even treat the ones that need special treatment (in our case reading
in polynomial coefficients and calculating demand positions rather
than just passing them in from somewhere) with genSubs, and for the
ones that don't need special treatment have a 'straight through'
function.

My $0.02,

Maren
Replies:
RE: Power Supply Record? Denison, PN (Peter)
References:
Power Supply Record? Susanna Jacobson
Re: Power Supply Record? Luedeke Andreas
Re: Power Supply Record? Dirk Zimoch

Navigate by Date:
Prev: Re: Power Supply Record? Geoff Savage
Next: Re: iocLogServer simple browser Maren Purves
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: WIENER crate Ralph Lange
Next: RE: Power Supply Record? Denison, PN (Peter)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·