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  <20112012  2013  2014  2015  2016  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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: 'Feature' of subArray record
From: Tim Mooney <[email protected]>
To: graham cox <[email protected]>
Cc: [email protected]
Date: Tue, 15 Mar 2011 11:33:53 -0500 (CDT)
Graham,

The subarray record reads the elements of the source array into the
same locations in its copy of that array, and then moves them according
to INDX.  If the subarray could read source-array elements directly to the
desired final locations in its copy, then so could any other record, and
the subarray record would serve no purpose.

Tim Mooney


----- Original Message -----
> From: "graham cox" <[email protected]>
> To: [email protected]
> Sent: Tuesday, March 15, 2011 11:07:22 AM
> Subject: 'Feature' of subArray record
> Hi,
> 
> I have a waveform record which retrieves data from 2 channels on a VME
> card upon the card generating an interrupt. I then process this data
> into channel 1 and channel 2 via two subArray records. Channel 2 data
> appears immediately following the channel 1 data in the waveform
> record and is of the same size.
> 
> subArray record 1 has INDX = 0, NELM = size of data (calculated from
> waveform.NORD/2 via calc record), MALM = 16384
> subArray record 2 has INDX = size of data, NELM = size of data, MALM =
> 16384
> 
> The maximum samples that the VME card will generate is 16384 per
> channel.
> 
> When I am at my maximum number of samples, I only see 1 sample in
> subArray record 2, INDX is truncated to MALM - 1 and NORD is 1. As
> number of samples is reduced NORD increases. It seems that I am only
> allowed to store (MALM - INDX) samples rather than MALM.
> 
> 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?
> 
> Graham--
> Scanned by iCritical.

-- 
Tim Mooney ([email protected]) (630)252-5417
Software Services Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab


References:
'Feature' of subArray record graham.cox

Navigate by Date:
Prev: Re: How to use asyn with linux-GPIB Rod Nussbaumer
Next: Re: 'Feature' of subArray record Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: 'Feature' of subArray record graham.cox
Next: Re: 'Feature' of subArray record Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·