Experimental Physics and Industrial Control System
|
Thomas Birke wrote:
Since the INDX actually has nothing to do with the subArray-record
itself, but is just an index into the referenced waveform (of unknown
size), to me it makes no sense at all to limit INDX to MALM-1.
For me the only solution is to set MALM of my subArray to INDX+NELM
which leads to hundreds of oversized and allocated arrays in my
subArray-records.
E.g. to slice out the last element of a waveform, I have to
(statically!) allocate space for the whole source-waveform and then
copy exactly one element.
I simply ask to drop these 4 lines of code from subArrayRecord.c - it
shouldn't even break existing installations, and for my case I could
reduce memory-consumption a lot.
Ooops - I just found, that this has been discussed before (back in 2005,
see http://www.aps.anl.gov/epics/tech-talk/2005/msg00924.php).
I should have looked at the tech-talk archives before, sorry...
The problem is, that you actually can't index into the source-waveform.
Values retrieved always range from index 0 to <n>.
Maybe we should at least point out this behaviour in the Record
Reference Manual. It's not only NELM that must not be greater that MALM,
but also INDX+NELM always must be less or equal MALM, otherwise NORD
will be less then NELM.
Regards,
Thomas
--
Thomas Birke
Operation Controls
Elektronenspeicherring BESSY II
Albert-Einstein-Str. 15, 12489 Berlin
Fon +49 30 6392 4934
Fax +49 30 6392 4859
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Glienicker Straße 100, 14109 Berlin
Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph
Stellvertretende Vorsitzende: Dr. Jutta Koch-Unterseher
Geschäftsführer: Prof. Dr. Anke Rita Pyzalla, Prof. Dr. Dr. h.c. Wolfgang Eberhardt, Dr. Ulrich Breuer
Sitz der Gesellschaft: Berlin Handelsregister: AG Charlottenburg, 89 HRB 5583
Information:
Durch die Fusion mit dem ehemaligen Hahn-Meitner-Institut (HMI) ist
BESSY nun Teil des neuen Helmholtz-Zentrum Berlin für Materialien
und Energie (HZB).
By the merger with the former Hahn-Meitner-Institut (HMI), BESSY
became part of the new Helmholtz-Zentrum Berlin für Materialien und
Energie (HZB).
Disclaimer automatically attached by the E-Mail Security Appliance
mail0.bessy.de 02/04/09 at Helmholtz-Zentrum Berlin GmbH.
- Replies:
- Re: Problem with subArray - unnecessary memory allocation Noboru Yamamoto
- References:
- Problem with subArray - unnecessary memory allocation Thomas Birke
- Navigate by Date:
- Prev:
Problem with subArray - unnecessary memory allocation Thomas Birke
- Next:
Re: Problem with subArray - unnecessary memory allocation Noboru Yamamoto
- 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:
Problem with subArray - unnecessary memory allocation Thomas Birke
- Next:
Re: Problem with subArray - unnecessary memory allocation Noboru Yamamoto
- 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
|
ANJ, 31 Jan 2014 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|