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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Crash when caput array of string to pcaspy or PCAS server tool |
From: | "Wang, Lin via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "Ralph Lange" <ralph.lange at gmx.de>, "EPICS Tech Talk" <tech-talk at aps.anl.gov> |
Date: | Thu, 14 Dec 2023 18:23:17 +0800 (GMT+08:00) |
My regular IOC has a waveform record with the initial value ["aaa", "bbb", "ccc"] as follows,
caput CLI without double quotation marks will write data to different elements of the waveform record as follows,
caput CLI with double quotation marks around the whole data will write the data to the first element of the waveform record as follows,
In addition, if the data to be writen exceeds the count limit of the recrod or the casPV, caput CLI will return an error as follows instead of crashing the server side.
Thanks,
Lin
-----原始邮件-----
发件人: "Ralph Lange via Tech-talk" <tech-talk at aps.anl.gov>
发送时间: 2023-12-14 16:54:17 (星期四)
收件人: "EPICS Tech Talk" <tech-talk at aps.anl.gov>
主题: Re: Crash when caput array of string to pcaspy or PCAS server toolOn Thu, 14 Dec 2023 at 09:48, Wang, Lin <wanglin at ihep.ac.cn> wrote:A regular IOC with the following waveform record works properly with the caput CLI comes with EPICS 3.14.12.8 or EPICS 7.0.7.
record(waveform, "wfExample"){field(DTYP, "Soft Channel")field(FTVL, "STRING")field(NELM, "3")field(INP, ["aaa", "bbb", "ccc"])}
Hm...Can you double check if that is a single element ("xxx yyy zzz") or three elements ("xxx", "yyy", "zzz") in the record? (Might look the same on the command line.)Cheers,
~Ralph