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  <20102011  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  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Analog output device support design
From: Angus Gratton <[email protected]>
To: Ralph Lange <[email protected]>
Cc: EPICS tech-talk <[email protected]>
Date: Tue, 27 Jul 2010 09:00:11 +1000
Thanks Ralph & Mark.

On Mon, 2010-07-26 at 09:40 -0400, Ralph Lange wrote:
> That way an ao with "...@5V BIP" and EGUF/EGUL = +/- 5 will convert from 
> "output voltage" to the 16-bit integer your card needs, while setting 
> EGUF/EGUL to something else will do the linear conversion from that 
> "something else" range to your raw value. This is the whole point of 
> having EGUF/EGUL/EGU as design fields - 

OK, sounds great. It's possible to have device support set the defaults
though, right? To avoid the designer having to repeat themselves in each
record if they just want the default case?


> .
> 
> Please do not write your device support starting from scratch. Copy the 
> device support for a device that is similar to yours

Yes, I understand. I've been working from the well documented minimal
example given in this presentation:

http://www.aps.anl.gov/epics/meetings/2009-07/talks/em_WritingEPICSDrivers.ppt

Outside of there, I've downloaded a few device support sources and
looked at them but to be honest it's hard to tell what is legacy and
what is a good example - lots of the sources haven't been touched in
many years, some of them do things like combine device support & the
driver into the same source, which I understand is no longer
recommended. Which is why I thought I'd ask to be sure, because I'm not
yet experienced enough to tell the difference between a good example and
a bad one.

Regards,

Angus


Replies:
Re: Analog output device support design Eric Norum
References:
Analog output device support design Angus Gratton
Re: Analog output device support design Ralph Lange

Navigate by Date:
Prev: Maven2 repository for EPICS Carcassi, Gabriele
Next: Re: Analog output device support design Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Analog output device support design Ralph Lange
Next: Re: Analog output device support design Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·