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: Store 64-bit integer in asyn parameter library?
From: Mark Rivers <[email protected]>
To: "J. Lewis Muir" <[email protected]>
Cc: EPICS Tech-Talk <[email protected]>
Date: Fri, 18 May 2018 18:00:00 +0000
What value does this represent in the vendor library? Sometimes a double can be used. It can exactly represent a 52 bit integer.

Mark


Sent from my iPhone

> On May 18, 2018, at 1:34 PM, J. Lewis Muir <[email protected]> wrote:
> 
>> On 05/18, J. Lewis Muir wrote:
>> I have a situation where I want to store a 64-bit integer (int64_t) from
>> a vendor library in asyn's parameter library.  There is no asynInt64
>> interface and no asynParamInt64 type in the latest asyn.  What is the
>> best way to handle this?  Store it using asynParamGenericPointer?
> 
> Hmm, it seems this parameter is also exposed via an ao and ai record
> using the asynInt32 device type, so I think the idea of using
> asynParamGenericPointer is out.  I'm thinking, then, that the best
> approach is to convert between the 64-bit integer and the 32-bit
> integer, and report an error if the 64-bit integer from the vendor
> library ever exceeds what will fit in the 32-bit integer....  Any better
> approach?
> 
> Thanks,
> 
> Lewis

Replies:
Re: Store 64-bit integer in asyn parameter library? J. Lewis Muir
References:
Store 64-bit integer in asyn parameter library? J. Lewis Muir
Re: Store 64-bit integer in asyn parameter library? J. Lewis Muir

Navigate by Date:
Prev: Re: Store 64-bit integer in asyn parameter library? J. Lewis Muir
Next: Re: Store 64-bit integer in asyn parameter library? 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: Store 64-bit integer in asyn parameter library? J. Lewis Muir
Next: Re: Store 64-bit integer in asyn parameter library? 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, 18 May 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·