EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: Initial value readback from hardware into output records
From: Benjamin Franksen <[email protected]>
To: [email protected]
Date: Sun, 12 Dec 2004 17:21:23 +0100
On Sunday 12 December 2004 04:45, [email protected] wrote:
> Hi Stephanie,
>
> Thank-you for this.  I understand how to do your solutions (1) and (3), but
>
> it is solution number (2) which I am primarily interested in:
> >(2) For records that have readback available and initialization device
>
> support, >the setpoint is set to the readback by device support at the
> proper time in >iocInit.
>
> I have never seen any concrete examples of how to do this in the real world
> and would appreciate some help in understanding the details.  For instance,
> I presume that the readback must be obtained during Device Support's
> Init_Record() routine but I have not yet fully grasped how this happens.

Take a look at one of the available hardware support modules, see 
http://www.aps.anl.gov/epics/modules/index.php. If you find your hardware 
listed, you are done (mostly). Otherwise, you might want to ask on tech-talk 
if anyone has written devise support for your hardware. Otherwise take a 
second look at the above web page and try to find a similar device support 
and modify the code accordingly. Also, read Application Developer's Guide, 
Chapter on Device Support.

> For instance, the IOC Developers Guide talks about Driver Support and I
> presume that Device Support must call an API provided by Driver Support to
> get the readback value.

Not necessarily. For simple devices, especially synchronous ones, device 
support will usually talk directly to the device.

> But where do I obtain these low-level drivers from?  Do I have to write
> them myself?

Yes, unless you find someone else who already did.

> Or are they generally available somewhere?  

See above.

> Or does Device  
> Support just talk directly to the hardware, and if so what does EPICS
> provide to help with this?

EPICS rovides a library to access devices on the VMEbus under VxWorks. See the 
Application Developer's Guide for details.

Ben

References:
RE: Initial value readback from hardware into output records Steven . Banks

Navigate by Date:
Prev: RE: Initial value readback from hardware into output records Steven . Banks
Next: Is anybody investigating using state-full web services with EPICS APIs? Bill St. Arnaud
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Initial value readback from hardware into output records Steven . Banks
Next: EPICS problem Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·