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  <20152016  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  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: UCHAR to BitArray conversion
From: Ralph Lange <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Cc: ishita bhatia <[email protected]>
Date: Wed, 24 Jun 2015 17:32:03 +0200
On 24/06/2015 17:25, Mooney, Tim M. wrote:
I would do this with an aSub record.

For clarity,  I think what you want is to convert 50 66 64 51, which is hex 32 42 40 33, to 0x32424033.
If so, I don't know how to do it without writing code.

What about four subArray records to separate the bytes, then a calcout to do the bit shifting sum and write to the mbbiDirect?!
Not very elegant, I admit.

Cheers,
~Ralph




From: [email protected] [[email protected]] on behalf of ishita bhatia [[email protected]]
Sent: Wednesday, June 24, 2015 4:12 AM
To: [email protected]
Subject: UCHAR to BitArray conversion

Data have been recieved from VME through Waveform record in UCHAR. OUtput we get through waveform record is: waf 4 50 66 64 51.
Now we wan't to get output as 32-bit array(bitArray). For that we used mbbiDirect record, but output we are getting is either 0 or sometimes output is empty i.e. just the name of record.

kindly suggest how to get correct output in form of BitArray using mbbiDirect record or is there any other way to convert UCHAR to bitArray.



Replies:
Re: UCHAR to BitArray conversion ishita bhatia
References:
UCHAR to BitArray conversion ishita bhatia
RE: UCHAR to BitArray conversion Mooney, Tim M.

Navigate by Date:
Prev: RE: UCHAR to BitArray conversion Mooney, Tim M.
Next: RE: EPICS base-3.14.12.5 installation error freddie.akeroyd
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: UCHAR to BitArray conversion Mooney, Tim M.
Next: Re: UCHAR to BitArray conversion ishita bhatia
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·