On 6/3/09 8:23 AM, Hinko Kocevar wrote:
> Steven M. Hartman wrote:
>> Hinko Kocevar wrote:
>>> Hello,
>>>
>>> I'm trying to use subArray record type to display each array element at
>>> index 0 .. n (n == 10; my case) in a separate PV.
>>>
>>
>> For your subArray records, use . . .
>>
>> field(MALM,"16") # number of elements of the waveform input
>> field(NELM,"1") # number elements for desired subArray
>>
>> The subArray needs to allocate enough storage for MALM elements to hold
>> the whole INP waveform, but you only want NELM elements for the subArray
>> itself.
>>
>
> If I change subArray records the way you described it does not change
> the output of the monitor to display only one value. The output is the
> same as in the case I've described in previous mail (not desired to have
> trailing zeros).
Hi, Hinko.
I agree with Steven's advice that you should use MALM=16 for your
subArray records.
What version of EPICS are you using? There is a known problem with the
subArray record before EPICS 3.14.10. Could you check the value of
"$(DEVICE)B.INDX" during your test? Has it been set to 0 even though
you specified a value of 1? If so, you may be running into the problem
reported in the following Tech-Talk message:
http://www.aps.anl.gov/epics/tech-talk/2007/msg01432.php
Lewis
--
J. Lewis Muir
Software Engineer
CARS/IMCA-CAT
- Replies:
- Re: subArray processing Hinko Kocevar
- References:
- subArray processing Hinko Kocevar
- Re: subArray processing Steven M. Hartman
- Re: subArray processing Hinko Kocevar
- Navigate by Date:
- Prev:
Re: subArray processing Hinko Kocevar
- Next:
Re: subArray processing Carl Lionberger
- 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: subArray processing Hinko Kocevar
- Next:
Re: subArray processing Hinko Kocevar
- 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
|