g+
g+ Communities
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  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: menuFtype for 64 bit integers aka. long long and unsigned long long
From: Benjamin Franksen <benjamin.franksen@helmholtz-berlin.de>
To: <tech-talk@aps.anl.gov>
Date: Thu, 22 Mar 2012 01:29:08 +0100
Am Mittwoch, 21. März 2012, 00:14:47 schrieb Andrew Johnson:
> On 2012-03-15 Hinko Kocevar wrote:
> > Are there any plans on adding support for 64-bit types to menuFtype (for
> > 3.14.x branch)?
>
> This will definitely never happen on the 3.14.x branch, and probably not on
> the 3.15.x branch either (there should be a 3.15.0 release out this
> summer).
>
> > Are there any workarounds for this issue?
>
> This idea is really horrible but it should work as long as you're very
> careful: If you are responsible for the device support and all the CA
> client programs and you can do any IOC-based processing that is necessary
> inside a subroutine or aSub record then you could pretend to the IOC code
> that your 64- bit data types are epicsFloat64 (i.e. double) values and use
> casts to convert them back and forth.  However you won't be able to use
> any of the standard tools to look at the values, and I really don't
> recommend doing this.

Somewhat less horrible is a DBF_NOACCESS field with an epicsInt64 C
declaration as 'extra' property... you still have no 'official' outside access
to the field, but at least the field type documents that.

Cheers
Ben

________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführerin: Prof. Dr. Anke Rita Kaysser-Pyzalla

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de


References:
menuFtype for 64 bit integers aka. long long and unsigned long long Hinko Kocevar
Re: menuFtype for 64 bit integers aka. long long and unsigned long long Andrew Johnson

Navigate by Date:
Prev: Re: Build problem with db dependencies Bruce Hill
Next: hdf5 (h5py) anyone? Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: Re: menuFtype for 64 bit integers aka. long long and unsigned long long Andrew Johnson
Next: RE: menuFtype for 64 bit integers aka. long long and unsigned long long Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·