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  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  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  <20212022  2023  2024 
<== 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


Replies:
Re: Storing an array element as a scalar in a record Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Re: New to EPICS - v4 questions Marty Kraimer via Tech-talk
Next: Re: Storing an array element as a scalar in a record Johnson, Andrew N. via Tech-talk
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  <20212022  2023  2024 
Navigate by Thread:
Prev: EPICS 7.0.5 C++ Normative Type library version Ralph Lange via Tech-talk
Next: Re: Storing an array element as a scalar in a record Johnson, Andrew N. via Tech-talk
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  <20212022  2023  2024 
ANJ, 05 Mar 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·