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: | Re: subArray behavior reading just 1 element |
From: | "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Lucas Russo <lerwys at gmail.com> |
Cc: | EPICS tech-talk <tech-talk at aps.anl.gov> |
Date: | Wed, 1 Sep 2021 21:43:40 +0000 |
Hi Lucas,
On Sep 1, 2021, at 4:16 PM, Lucas Russo <lerwys at gmail.com> wrote:
Try using caget -c subarr instead — unfortunately caget without a
-c option will always print the maximum number of elements that the array can hold (zero-filled after the number received), but using
-c it uses a CA get_callback() API which asks the IOC how many elements the array currently holds and shows that instead. That will be 1 so you should get what you’re asking for.
- Andrew
--
Complexity comes for free, simplicity you have to work for.
|