EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: aao record behaviour
From: Eric Bjorklund <[email protected]>
To: [email protected]
Date: Wed, 3 May 2000 10:39:56 -0600
Marty,

Thanks for clarifying this.

>
>What causes the confusion is that old database access, which is what CA uses,
>only knows how to handle the maximum number of elements.
>
>The correct behavior is that  cvt_dbaddr sets no_elements = NELM, ie the
>size of
>the allocated array and get_array_info returns NORD, i.e. the current actual
>number of elements.
>

>
>My suggestion is to do the following.
>
>Define the DSET to have one additional method, call it init_record_pass0, and
>then let the record support init_record call it during pass 0. The device
>support must allocate storage for the array when init_record_pass0 is called.
>

My question here is that since we're mucking with the aao record anyway,
wouldn't
it be better to have the record support module allocate the buffer during
pass 0
based on NELM and FTVL?  Then the only device support change would be to
*remove*
the buffer allocation code.  We would, of course, have to be sure that FTVL was
set correctly in each of the records -- for me that would be no problem (and I
suspect it wouldn't be for Timor either at this point).

Eric Bj.


Replies:
Re: aao record behaviour Marty Kraimer
References:
Re: aao record behaviour Korhonen Timo
Re: aao record behaviour Marty Kraimer

Navigate by Date:
Prev: Re: aao record behaviour Marty Kraimer
Next: Re: aao record behaviour Marty Kraimer
Index: 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: aao record behaviour Marty Kraimer
Next: Re: aao record behaviour Marty Kraimer
Index: 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  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 ·