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: old - new CA type mapping
From: Marty Kraimer <[email protected]>
To: Geoff Savage <[email protected]>
Cc: tech-talk <[email protected]>
Date: Fri, 31 Mar 2000 14:05:08 -0600
Geoff Savage wrote:
> 
> Where do I find the mapping between old (db_access.h) and new
> (dbFldTypes.h) field types?  My understanding is that the current client
> CA uses old and the CA servers use new.  Somewhere the new types in the
> server must be mapped to an old type.  For example what are the unsigned
> types mapped to.
> 
> Thanks
> 
> Geoff


The old place is in db_access.h

/*Conversion between old and new DBR types*/
extern unsigned short dbDBRoldToDBFnew[DBR_DOUBLE+1];
extern unsigned short dbDBRnewToDBRold[newDBR_ENUM+1];
#ifdef DB_TEXT_GLBLSOURCE
unsigned short dbDBRoldToDBFnew[DBR_DOUBLE+1] = {
        0, /*DBR_STRING to DBF_STRING*/
        3, /*DBR_INT to DBF_SHORT*/
        7, /*DBR_FLOAT to DBF_FLOAT*/
        9, /*DBR_ENUM to DBF_ENUM*/
        1, /*DBR_CHAR to DBF_CHAR*/
        5, /*DBR_LONG to DBF_LONG*/
        8  /*DBR_DOUBLE to DBF_DOUBLE*/
};
unsigned short dbDBRnewToDBRold[newDBR_ENUM+1] = {
        0, /*DBR_STRING to DBR_STRING*/
        4, /*DBR_CHAR to DBR_CHAR*/
        4, /*DBR_UCHAR to DBR_CHAR*/
        1, /*DBR_SHORT to DBR_SHORT*/
        5, /*DBR_USHORT to DBR_LONG*/
        5, /*DBR_LONG to DBR_LONG*/
        6, /*DBR_ULONG to DBR_DOUBLE*/
        2, /*DBR_FLOAT to DBR_FLOAT*/
        6, /*DBR_DOUBLE to DBR_DOUBLE*/
        3, /*DBR_ENUM to DBR_ENUM*/
};


Dont get too horrified :-) New was implemented in 1990. The intention was that
old would go away after a short transition period. So much for good intentions.

Marty


Replies:
DBF_GBLCHOICE, etc Robert Willson
References:
old - new CA type mapping Geoff Savage

Navigate by Date:
Prev: old - new CA type mapping Geoff Savage
Next: DBF_GBLCHOICE, etc Robert Willson
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: old - new CA type mapping Geoff Savage
Next: DBF_GBLCHOICE, etc Robert Willson
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 ·