Hi Graham,
On Tuesday 15 March 2011 11:07:22 [email protected] wrote:
> Should it not be the case that I can store the number of sample allocated
> in MALM? Otherwise I will be allocating memory which I will never be
> using, in this case double the amount required in subArray 2 as MALM must
> equal (INDX + NELM) rather than simply NELM.
>
> Clearly I can get the system operating by setting MALM sufficiently high in
> subArray 2, but it seems that MALM isn't quite doing what it would be
> expected to do?
Unfortunately the API that the subArray device support uses to fetch the data
from the waveform record does not include an offset parameter, so the code has
to fetch the whole array and then dump the first INDX elements. This is a
limitation of the current dbGetLink() routine. I could see ways to get around
it, but nobody has tried writing the necessary code yet, so currently you will
have to set your subArray 2's NELM field to the size of the waveform record.
HTH,
- Andrew
--
An error is only a mistake if you don't learn from it.
When you learn something from it, it becomes a lesson.
- Replies:
- RE: 'Feature' of subArray record graham.cox
- References:
- 'Feature' of subArray record graham.cox
- Navigate by Date:
- Prev:
Re: 'Feature' of subArray record Tim Mooney
- Next:
RE: 'Feature' of subArray record graham.cox
- 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: 'Feature' of subArray record Tim Mooney
- Next:
RE: 'Feature' of subArray record graham.cox
- 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
|