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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Storing an array element as a scalar in a record |
From: | "Wang, Andrew via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Sat, 6 Mar 2021 01:39:50 +0000 |
All, So I have a waveform record that allows four numbers to be stored. I tried to use the subArray record to get the ith element from the array. I set the MALM, NELM and INDX fields to be 1, 1, and 2 respectively. However, when I process the
subArray record, I get the first element of the array, rather than the third element. If this is not a viable way to go about it, are there other potential ways to store a scalar from an array in a record aside from using an asub record? Any insight into this would be greatly appreciated. Andy |