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  <20102011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: FW: unsigned long record value
From: "Mark Rivers" <rivers@cars.uchicago.edu>
To: "EPICS tech-talk" <tech-talk@aps.anl.gov>
Date: Thu, 10 Jun 2010 09:26:12 -0500
Title: Re: unsigned long record value

I meant to send this to the list as well.

 


From: Mark Rivers
Sent: Thursday, June 10, 2010 6:58 AM
To: Patrick Thomas
Subject: RE: unsigned long record value

 

The VAL field of a longin record is an epicsInt32.  That is the same size as an epicsUInt32.  The difference is just in the interpretation of the bit pattern. Do you need to represent positive numbers greater than 2^31-1 (2147483647) in your application?  If not then there is no problem just using the epicsInt32 as is.

 

If you do, then depending on the application, you may be able to just cast the epicsInt32 to epicsUInt32 to interpret the value as an unsigned number.

 

Mark

 

 


From: Patrick Thomas [mailto:thomas_p@ligo-wa.caltech.edu]
Sent: Wed 6/9/2010 11:05 PM
To: Mark Rivers
Subject: Re: unsigned long record value

Are those large enough to hold an unsigned value?

Thank you,
Patrick

Mark Rivers wrote:
> The longin record will hold DBF_LONG values.
>
> ________________________________
>
> From: tech-talk-bounces@aps.anl.gov on behalf of Patrick Thomas
> Sent: Wed 6/9/2010 8:51 PM
> To: tech-talk@aps.anl.gov
> Subject: unsigned long record value
>
>
>
> Hi,
>
> Is there a record like the ai record that will hold unsigned long values?
>
> Thank you,
> Patrick
>
>
>  


Navigate by Date:
Prev: Re: unsigned long record value Andrew Johnson
Next: Motor record release R6-5-1 Ron Sluiter
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Re: unsigned long record value Andrew Johnson
Next: Motor record release R6-5-1 Ron Sluiter
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·