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: Setting an array to zero length |
From: | "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "Rogers, Will (DLSLtd,RAL,LSCI)" <will.rogers at diamond.ac.uk> |
Cc: | EPICS tech-talk <tech-talk at aps.anl.gov> |
Date: | Wed, 8 Apr 2020 17:05:35 +0000 |
Hi Will,
It is not currently (and may never be) possible to put a zero-length array through Channel Access; I don’t know if PVA and QSRV can handle them or not. The IOC generally doesn’t work too well with zero-length arrays, there are some internal APIs
that take a zero length to mean there is no data at all (so they can pass metadata around without any data).
Personally I think it regrettable that waveform records currently start up with zero elements, I would have preferred that we never have any zero-length arrays in the IOC since I suspect making them work properly might take more work than making
them impossible, but if someone is already using them we probably couldn’t make that change. IOC support for zero-length arrays is something that a site that relies on them should probably take a careful look at; currently I think we have a bit of a mixture,
some APIs can handle them and others can’t (including the CA client API AIUI).
HTH,
- Andrew
--
Complexity comes for free, simplicity you have to work for.
|