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: ishita bhatia <[email protected]>
To: Mark Rivers <[email protected]>
Cc: EPICS Tech-Talk <[email protected]>
Date: Sat, 27 Jun 2015 21:42:14 +0530
Hello,
I wan't the output i have recieved through waveform record i.e.  waf 4 50 66 64 51  in BINARY FORM( 1's and 0's) and this binary output should be in form of array.
Kindly suggest how to get such output. 

On Thu, Jun 25, 2015 at 5:13 PM, Mark Rivers <[email protected]> wrote:
I am not sure what you mean by a "bitArray"?  In some sense your asyn record data is already a "bitArray": it is a series of sequential bits in memory.  By bitArray do you mean an array of CHAR, UCHAR, or INT32 in which each element of that array only holds a single bit?  If so what data type do you want the array values to be?

Taking a step back: what is your end-goal, why do you want the data in a bitArray?

Mark

________________________________
From: [email protected] [[email protected]] on behalf of ishita bhatia [[email protected]]
Sent: Thursday, June 25, 2015 6:17 AM
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.



Replies:
RE: UCHAR to BitArray conversion Mark Rivers
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
RE: UCHAR to BitArray conversion Mark Rivers

Navigate by Date:
Prev: Re: IOC without iocsh Andrew Johnson
Next: RE: UCHAR to BitArray conversion Mark Rivers
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: RE: UCHAR to BitArray conversion Mark Rivers
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 ·