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

Subject: Re: Asyn driver access to PV fields.
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Thu, 19 Feb 2009 15:56:57 -0600
Hi Mark,

Shouldn't the Asyn mbb[io] device support have some generic way of asking the 
driver if it has a set of strings for its various states?  This would keep 
the separation between the driver and the device support and still make it 
possible for Brian to do what he wants without having to write a special 
device support layer.

If you do add that, the device support is currently limited to 16 strings 
(because that's the most that CA will send for a DBF_ENUM), but you probably 
shouldn't limit the Asyn interface to that number.

- Andrew


On Thursday 19 February 2009 15:45:53 Mark Rivers wrote:
> Hi Brian,
>
> The asyn driver does not have access to the record.  The driver only
> talks to device support, and the device support talks to the record.
>
> I don't think you can do what you want using standard asyn device
> support.  But if you wrote your own device support for the mbbo record
> (based on the mbbo support in devAsyn/devAsynInt32.c for example) you
> could use the asynOctet interface to query the driver for the enum
> string values during initRecord, and set those enum string values in the
> record.
>
> Mark
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of tieman
> Sent: Thursday, February 19, 2009 3:40 PM
> To: tech talk
> Subject: Asyn driver access to PV fields.
>
> Hi all!
>
> I have a situation where I have an mbbo field that I would like to set
> programmatically at run time.  Specifically, I would like to set ZSTR,
> ONST, etc... to specific values that are read back from hardware in a
> device driver at initialization.  How can I do this from within an Asyn
> driver?
>
> Thanks!
>
> Brian



-- 
The best FOSS code is written to be read by other humans -- Harold Welte

References:
Asyn driver access to PV fields. tieman
RE: Asyn driver access to PV fields. Mark Rivers

Navigate by Date:
Prev: RE: Asyn driver access to PV fields. Mark Rivers
Next: Re: Asyn driver access to PV fields. Marty Kraimer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Asyn driver access to PV fields. Mark Rivers
Next: Re: Asyn driver access to PV fields. Marty Kraimer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·