My memories are that this has also been discussed at tech-talk.
I have defined a longout record and wanted to achieve that you can set exactly only one value.
In my example I tried this with DRVL = DRVH = 32768.
But the conversion function in the logout record looks like this:
static void convert(longoutRecord *prec, epicsInt32 value)
{
/* check drive limits */
if(prec->drvh > prec->drvl) {
if (value > prec->drvh) value = prec->drvh;
else if (value < prec->drvl) value = prec->drvl;
}
prec->val = value;
}
Something speaks against the check like this ?
if(prec->drvh => prec->drvl)
Viele Grüße
Heinz Junkes
--
Experience directly varies with equipment ruined.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
- Replies:
- 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 Ralph Lange via Core-talk
- Navigate by Date:
- Prev:
Jenkins build is back to normal : EPICS-3.14 #925 Jenkins EPICS PSI via Core-talk
- Next:
Unit tests on Windows DLL internals Ralph Lange 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:
Build failed: EPICS Base 7 base-7.0-132 AppVeyor via Core-talk
- Next:
Re: A general question about convert e.g. in longout record drvh, drvl handling Ralph Lange 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
|