One could of course change the check to
if ((prec->drvl !=0 || prec->drvh !=0) && prec->drvh > prec->drvl)
But then in ao as well.
It would change traditional behavior (which used to be documented wrongly in earlier EPICS releases) and potentially break existing IOCs where people use DLRH = DRVL != 0 and expect the limits to be ignored. It would also introduce a new "special case" because the record can then be fixed to any value except 0. Another option is to change the defaults from 0,0 to -verybig,+verybig.
I think a poll would be needed.
Dirk
> -----Ursprüngliche Nachricht-----
> Von: Core-talk <core-talk-bounces at aps.anl.gov> Im Auftrag von Heinz Junkes
> via Core-talk
> Gesendet: Mittwoch, 27. Januar 2021 12:53
> An: Ralph Lange <ralph.lange at gmx.de>
> Cc: EPICS Core Talk <core-talk at aps.anl.gov>
> Betreff: Re: A general question about convert e.g. in longout record drvh, drvl
> handling [signed INVALID]
>
> Yes, the Idea with DOL/OMSL is a good one ;-)
>
> And thanks for the clear answer about drvl = drvh = 0.
> Unfortunately I had not thought of that at that moment. Makes total sense.
>
> But maybe it would be worth to exclude the "0" (default) in the convert
> or to give a warning when loading the db file with DRVH = DRVL (!0)?
>
> Viele Grüße
> Heinz Junkes
> --
> Experience directly varies with equipment ruined.
>
>
>
> > On 27. Jan 2021, at 12:08, Ralph Lange via Core-talk <core-talk at aps.anl.gov>
> wrote:
> >
> > On Wed, 27 Jan 2021 at 11:56, Heinz Junkes via Core-talk <core-
> talk at aps.anl.gov> wrote:
> > I have defined a longout record and wanted to achieve that you can set
> exactly only one value.
> >
> > Wouldn't a constant DOL and OMSL set to supervisory achieve that?
> >
> > Cheers,
> > ~Ralph
> >
- Replies:
- Re: A general question about convert e.g. in longout record drvh, drvl handling Ben Franksen via Core-talk
- References:
- A general question about convert e.g. in longout record drvh, drvl handling Heinz Junkes via Core-talk
- Re: A general question about convert e.g. in longout record drvh, drvl handling Ralph Lange via Core-talk
- Re: A general question about convert e.g. in longout record drvh, drvl handling Heinz Junkes via Core-talk
- Navigate by Date:
- Prev:
Build failed in Jenkins: EPICS-7 #314 Jenkins EPICS PSI via Core-talk
- Next:
epics-7.0 - Build # 285 - Still Unstable! APS Jenkins via Core-talk
- Index:
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:
Re: A general question about convert e.g. in longout record drvh, drvl handling Johnson, Andrew N. via Core-talk
- Next:
Re: A general question about convert e.g. in longout record drvh, drvl handling Ben Franksen via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
<2021>
2022
2023
2024
|