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  2015  <20162017  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  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: error return from ao device support
From: Michael Davidsaver <[email protected]>
To: [email protected]
Date: Sun, 27 Mar 2016 09:18:42 +0900
On 03/26/2016 02:37 AM, [email protected] wrote:
> Are you saying that when an error is detected in dev support it should still return ok????

I think that returning non-zero is the right approach, it just doesn't
have all the effects you want.  So I'd suggest to set and alarm and
return non-zero.

> I think record support returns -1 when it detects an error, if so should dev support not do the same?

>From what I have seen, most record support process() passes this return
value through.  For example aiRecord.

http://bazaar.launchpad.net/~epics-core/epics-base/3.16/view/head:/src/std/rec/aiRecord.c#L154

Just keep in mind that is some cases this return code is ignored (eg.
periodic scan).

http://bazaar.launchpad.net/~epics-core/epics-base/3.16/view/head:/src/ioc/db/dbScan.c#L667


References:
Re: error return from ao device support Andrew Johnson
Re: error return from ao device support [email protected]

Navigate by Date:
Prev: Re: error return from ao device support [email protected]
Next: FFT and waveform Gofron, Kazimierz
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: error return from ao device support [email protected]
Next: FFT and waveform Gofron, Kazimierz
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·