EPICS Home

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

Subject: FW: unsigned long record value
From: "Mark Rivers" <[email protected]>
To: "EPICS tech-talk" <[email protected]>
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:[email protected]]
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: [email protected] on behalf of Patrick Thomas
> Sent: Wed 6/9/2010 8:51 PM
> To: [email protected]
> 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  2018  2019  2020  2021  2022  2023  2024 
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  2018  2019  2020  2021  2022  2023  2024