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

Subject: Re: Java API JCA / CAJ DBR_LONG
From: "Kasemir, Kay" <[email protected]>
To: Ryan Slominski <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 29 Jan 2018 19:27:04 +0000
Hi:

You're right that when I create this record:

  record(longin, "long")
  {
  }

then  'cainfo' will report
    Native data type: DBF_LONG
while CAJ shows a DBR_INT.

Still, the CAJ DBR_*_INT types provide Java int[] for the value, which is 32 bit numbers. When I
   caput long 2147483647
I do see that number in a CAJ client, it's not truncated to 16 bits as you would get with the C-client DBR_INT.

For the C client API, DBR_INT is the same as DBR_SHORT, and all of DBR_SHORT, INT, LONG exist in the API.
For the Java client, DBR_INT is basically DBR_LONG, and DBR_LONG has not been defined since it's already handled by DBR_INT..

-Kay

________________________________________
From: [email protected] <[email protected]> on behalf of Ryan Slominski <[email protected]>
Sent: Monday, January 29, 2018 2:02 PM
To: [email protected]
Subject: Java API JCA / CAJ DBR_LONG

It appears the Java API to EPICS does not include DBR_LONG type (missing from source: https://github.com/epics-base/jca/blob/master/src/core/gov/aps/jca/dbr/DBRType.java).  When I use caget and probe on a DBR_LONG PV and compare with programmatic fetch the values don't match and Java reports the type as DBR_INT.   Maybe I'm overlooking something.  Any tips on having Java API return same value as command line tools?


References:
Java API JCA / CAJ DBR_LONG Ryan Slominski

Navigate by Date:
Prev: Java API JCA / CAJ DBR_LONG Ryan Slominski
Next: Re: Java API JCA / CAJ DBR_LONG Miroslav Pavleski
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Java API JCA / CAJ DBR_LONG Ryan Slominski
Next: Re: Java API JCA / CAJ DBR_LONG Miroslav Pavleski
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 29 Jan 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·