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: Array widget in Display Builder |
From: | "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Tomasz Brys <Tomasz.Brys at ess.eu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Wed, 14 Apr 2021 14:08:33 +0000 |
>So, If I want to have an EMPTY array of size 30 what I have to do?
>I do not want to change the size of this array. What I want is to write sometimes 3 elements, and sometimes empty it (keeping size of 30). >Maybe I should use a Table widget instead?
We might mix our nomenclature when it comes to size/length/capacity. For the array widget, they're all the same and fixed. "Size 30" means there are always 30 elements. 'EMPTY' would mean no elements, size=length=0, while capacity may still be 30. The array widget doesn't support that. You could set the array to [ 0, 0, 0, 0, ..., 0 ] with 30 x [0], but not EMPTY as in []. Yes, for a display, you could use a table widget, but that requires a (small) script to transform the array data from the PV into the rows/columns of the table.
-Kay |