You did not answer my previous questions:
> 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?
Please show us the C code you would use to declare your array.
Mark
________________________________
From: ishita bhatia [[email protected]]
Sent: Saturday, June 27, 2015 11:12 AM
To: Mark Rivers
Cc: Ralph Lange; EPICS Tech-Talk
Subject: Re: UCHAR to BitArray conversion
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]<mailto:[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]<mailto:[email protected]> [[email protected]<mailto:[email protected]>] on behalf of ishita bhatia [[email protected]<mailto:[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.
- 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
- Re: UCHAR to BitArray conversion ishita bhatia
- Navigate by Date:
- Prev:
Re: UCHAR to BitArray conversion ishita bhatia
- Next:
Re: UCHAR to BitArray conversion(binary-bits array) ishita bhatia
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: UCHAR to BitArray conversion ishita bhatia
- Next:
RE: UCHAR to BitArray conversion peter.owens
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
|