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(binary-bits array)
From: Mark Rivers <[email protected]>
To: ishita bhatia <[email protected]>
Cc: EPICS Tech-Talk <[email protected]>
Date: Mon, 29 Jun 2015 12:36:43 +0000
As Ralph said, this is still not clear.  Please answer the following:

- What device are you reading from?
- How are you currently reading the data from that device?  By a custom driver/device support, via asyn record, via streamDevice, etc.
- How do you want to access the data?  Over Channel Access from a CA client, in some of your own C or Python code, etc.

Typically in EPICS we don't put 32-bit binary values into any array we put them into a single 32-bit integer and then use a "mask" to select which bit to access.

Mark

________________________________
From: ishita bhatia [[email protected]]
Sent: Monday, June 29, 2015 12:32 AM
To: Mark Rivers
Cc: Ralph Lange; EPICS Tech-Talk
Subject: Re: UCHAR to BitArray conversion(binary-bits array)

Hello Mark,
As u have asked in previous post, my end goal is to get reading of OPTO card in form of binary (1's and 0's) where  1 would represent ON status and 0 would represent OFF status. That is why the data which I am receiving from waveform record(data type: Uchar), I want that data in form of  Binary.
Now as I want data in form of binary, I passed the output of waveform record in mbbiDirect but the output I am getting from mbbiDirect is in form of 1 binary bit at a time....but I want output as array of binary bits(32 binary bits as output of my waveform record contains 4 bytes). So please tell me how to get such output or which record should I use to get that output.
I hope I am making my point clear.


Replies:
RE: UCHAR to BitArray conversion(binary-bits array) Mark S. Engbretson
References:
Re: UCHAR to BitArray conversion(binary-bits array) ishita bhatia

Navigate by Date:
Prev: Re: UCHAR to BitArray conversion(binary-bits array) Ralph Lange
Next: Re: CSS performance Benoit
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(binary-bits array) Ralph Lange
Next: RE: UCHAR to BitArray conversion(binary-bits array) Mark S. Engbretson
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 ·