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  <20142015  2016  2017  2018  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018 
<== Date ==> <== Thread ==>

Subject: Re: AsynPortDriver setting DRVH of ao?
From: Scott Baily <sbaily@lanl.gov>
To: tech-talk@aps.anl.gov
Date: Wed, 22 Oct 2014 09:49:00 -0600
On 10/15/2014 7:11 AM, Florian Feldbauer wrote:
Is it possible (e.g. during initialization) to set the DRVH fields via
the asynPortDriver?

At present asynPortDriver does not set DRVH or DRVL. However, I think this would be a good addition, and easy to add. AsynPortDriver already has a getBounds function. If you write your writeInt32 function correctly, you can have it coerce the value to be within range, and get the same functionality. Unfortunately, the VAL field of the EPICS channel won't be coerced so users won't know its happening without a separate readback channel (but you won't write out of range values to hardware). The initAi and initAo functions already call getBounds, and convertAi and convertAo use these limits to calculate eslo and eoff. I see no reason why initLo and InitAo couldn't be modified to adjust DRVH and DRVL to these values (i.e. set them if they are both 0, or adjust them if the current values are out of range). Certainly, one would want to allow the database to specify a tighter range than device support permits.

Also, you can probably use less than 17 records for the workaround others were suggesting if you use a couple of dfanout records.
--
Scott Baily
AOT-IC, MS H820
Los Alamos National Laboratory
Los Alamos, NM 87545
ph: (505) 606-2260

Replies:
Re: AsynPortDriver setting DRVH of ao? Florian Feldbauer
References:
AsynPortDriver setting DRVH of ao? Florian Feldbauer

Navigate by Date:
Prev: asyndriver : Multiple drvAsynIPPort Patel Jignesh
Next: Re: Interface Labview and EPICS Olivier Zimmermann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018 
Navigate by Thread:
Prev: Re: AsynPortDriver setting DRVH of ao? Florian Feldbauer
Next: Re: AsynPortDriver setting DRVH of ao? Florian Feldbauer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·