EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: RE: only 16 enum states?
From: "Jeff Hill" <[email protected]>
To: "'Marty Kraimer'" <[email protected]>, "'Dirk Zimoch'" <[email protected]>
Cc: "'TECHTALK'" <[email protected]>
Date: Tue, 23 Nov 2004 08:36:00 -0700
> >
> > Is there a fix?
>
> No.

One possible short term fix would be to add a new DBR_XXX type similar to
DBR_GR_ENUM, but with more states. This would require changes in database
access but would have a relatively low impact on CA.

A more general approach is in progress based on data access.

Jeff

> -----Original Message-----
> From: Marty Kraimer [mailto:[email protected]]
> Sent: Tuesday, November 23, 2004 6:13 AM
> To: Dirk Zimoch
> Cc: TECHTALK
> Subject: Re: only 16 enum states?
> 
> 
> 
> Dirk Zimoch wrote:
> 
> > Hi all,
> >
> > when I try to read the choices of an enum field, I only get the first
> > 16. This ist not enough to read all the choices of the LINR field
> > (menuConvert) if there are many breakpoint tables. It's even not
> > enough to read all choices of the STAT field.
> 
> 
> As you found out it is a problem in db_access.h, which describes that
> data that passes through Channel Access.
> 
> >
> > Is there a fix?
> 
> No.
> 
> >
> > What happens if I change in db_access.h
> >
> > #define MAX_ENUM_STATES        16
> >
> > in
> >
> > #define MAX_ENUM_STATES        255
> 
> 
> You will break any existing CA client and server that uses ENUMs
> 
> >
> > ?
> >
> >
> > Dirk
> >
> 
> Perhaps Bob Dalesio can make a few comments about how we plan to address
> this and other known problems created by db_access.h. For example
> strings are limited to 40 characters. We hope to start addressing these
> issues in the near future.


References:
Re: only 16 enum states? Marty Kraimer

Navigate by Date:
Prev: RE:Thales RF transmitter controls Elder Matias
Next: RE: Thales RF transmitter controls Gurd, Pamela A.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: only 16 enum states? Marty Kraimer
Next: RE: only 16 enum states? Dalesio, Leo
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  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 ·