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

Subject: Re: caget limitation retreiving ENUM list
From: Andrew Johnson <anj@aps.anl.gov>
To: tech-talk@aps.anl.gov
Date: Thu, 28 Jun 2012 10:08:54 -0500
Hi haquin,

On 2012-06-28 haquin wrote:
> 
> I have developped a record which has an ENUM field of 32 elements,
> When I use "caget -d 31 PVname" to retreive the list of elements, I get
>  only the 16 first elements.
> 
> Could the "caget -d xx" retreive more the 16 elements ?

No, the problem is that the Channel Access network protocol only supports a 
maximum of 16 ENUM states.  There is no backwards-compatible way to support 
your ENUM field over the network without extending the CA protocol, adding new 
data types to the db_access.h file and changing all the CA clients to use 
those new types.

Strangely the internal limit for ENUM states within the database code is 
higher, it seems to be defined to be 30 there.  I have no idea why though, the 
alarm status menu has 22 states.

Sorry, but I suspect that your time spent on that record has probably been 
wasted.

- Andrew
-- 
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte

References:
caget limitation retreiving ENUM list haquin

Navigate by Date:
Prev: RE: caget limitation retreiving ENUM list Hill, Jeff
Next: Re: epicsAtExit Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: RE: caget limitation retreiving ENUM list Hill, Jeff
Next: Re: caget limitation retreiving ENUM list Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·