EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: RE: Using Asyn driver or modifying devLib (or related programs) of EPICSbase for any knid of cPCI cards
From: "Mark Rivers" <[email protected]>
To: "Jenny Chen" <[email protected]>, <[email protected]>
Date: Thu, 4 Oct 2007 06:40:57 -0500
Hi Jenny,
 
> This is my problem I think. How to link one asyn driver for any card? Or one driver for one card? Is there any example I can refer?
 
One asyn port driver per card, or one driver for all cards of a given type, is an implementation decision.  But typically one would use one asyn port driver per card, and use the asyn "address" parameter to refer to subaddresses on that card.  For example, with a particular ADC card model, there would be one asyn port driver per card, and the asyn address would select which ADC (for example 0 to 15) to read.  An example of an asyn driver for a register-based ADC can be found at:
 
http://cars.uchicago.edu/software/epics/ip330.html
 
>  Another question, Should we have to install all drivers before startup EPICS at every boot
>  (or EPICS init function does that) (the linux version is later then 2.6)? 
 
That depends what type of driver you are talking about.  The asyn driver is typically started by a device-specific command that you write and call from your EPICS startup script.  A Linux driver from a vendor would typically be started once when Linux is booted.
 
Mark
 

________________________________

From: Jenny Chen [mailto:[email protected]]
Sent: Wed 10/3/2007 9:47 PM
To: [email protected]; Mark Rivers
Subject: RE: Using Asyn driver or modifying devLib (or related programs) of EPICSbase for any knid of cPCI cards


Dear Mark,
 
 
>- Using asyn driver.  You can use asyn to write your driver whether or not it uses register access, calls to a >vendor library, or some other mechanism.  In this context asyn is just a standardized interface between EPICS >device support and your driver.  This means that once you write an asyn driver you should be able to use the >asyn device support for standard records (ai, ao, bi, bo, etc.), and you don't need to write your own device >support.
 
This is my problem I think. How to link one asyn driver for any card? Or one driver for one card? Is there any example I can refer? Another question, Should we have to install all drivers before startup EPICS at every boot (or EPICS init function does that) (the linux version is later then 2.6)? 
Jenny
 


Replies:
RE: Using Asyn driver or modifying devLib (or related programs) of EPICSbase for any knid of cPCI cards Jenny Chen
References:
RE: Using Asyn driver or modifying devLib (or related programs) of EPICSbase for any knid of cPCI cards Jenny Chen

Navigate by Date:
Prev: RE: Using Asyn driver or modifying devLib (or related programs) of EPICSbase for any knid of cPCI cards Jenny Chen
Next: help~~problem about using ArchiveEngine marco_hair
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Using Asyn driver or modifying devLib (or related programs) of EPICSbase for any knid of cPCI cards Jenny Chen
Next: RE: Using Asyn driver or modifying devLib (or related programs) of EPICSbase for any knid of cPCI cards Jenny Chen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·