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: <[email protected]>
To: <[email protected]>
Date: Thu, 25 Jun 2015 14:37:44 +0000

Is your device sending this data as a stream of bytes (eg over a serial line)?

If so I would suggest you use stream device to parse your input into 5 mbbiDirect records.

What do you want to do with the “bit array”?

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of ishita bhatia
Sent: 25 June 2015 12:18
To: Ralph Lange
Cc: EPICS Tech-Talk
Subject: Re: UCHAR to BitArray conversion

 

Hello,

 

How can i get output of mbbiDirect record in form of bitArray ? Is there any record available in VDCT to get such output.

To get understanding of mbbiDirect record i tried following:

 

I have taken a decimal value (for eg.4 ) in ai record. This value is given as input in mbbiDirect record (for eg. bits). Now when i run ioc, i give command

caget bits.B0

 I get output as 1 i.e. just one bit of 100(binary of 4). then when I run caget bits.B1, i get output 0...same caget bits.B1 gives 0.

but as this mbbiDirect gives bit by bit output, i wan't to get output in form of bitArray.

My main requirement is i am getting output from waveform record as waf 4 50 66 64 51(this is the output which i have got from VME using asyn record )which i wan't to convert in binary or bitArray form. So kindly suggest me how to do it without code or even if I create a device support how will i fetch this data (waf 4 50 66 64 5)from VDCT to device support to create the logic.


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

Navigate by Date:
Prev: RE: UCHAR to BitArray conversion Mark Rivers
Next: RE: CSS performance Shroff, Kunal
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 Mark Rivers
Next: EPICS base-3.14.12.5 installation error Alex George
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 ·