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: Miroslav Pavleski <[email protected]>
To: [email protected]
Date: Mon, 29 Jan 2018 20:27:51 +0100
Hi

My colleague Matej Sekoranja has the answer:


Native CA:
DBR_LONG types are 32-bit integers, and DBR_INT == DBR_SHORT types are 16-bit.
CA does not handle 64-bit integers (natively). 

In JCA naming is different. I suspect this was done intentionally to avoid confusion since long in Java is 64-bit.

DBR_LONG is renamed to DBR_INT in JCA, and DBR_SHORT == DBR_SHORT.
Note that is just the naming, actual codes (the protocol) is the same.

I find this more confusing.

JCA interfaces are (a bit) outdated. If you are looking for a modern CA Java interface check this out:

Cheers,
Matej



Regards
Miroslav


On 29. 01. 2018 20:02, Ryan Slominski wrote:
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?



Replies:
Re: Java API JCA / CAJ DBR_LONG J. Lewis Muir
References:
Java API JCA / CAJ DBR_LONG Ryan Slominski

Navigate by Date:
Prev: Re: Java API JCA / CAJ DBR_LONG Kasemir, Kay
Next: Re: Java API JCA / CAJ DBR_LONG J. Lewis Muir
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: Re: Java API JCA / CAJ DBR_LONG Kasemir, Kay
Next: Re: Java API JCA / CAJ DBR_LONG J. Lewis Muir
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 ·