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  2021  2022  2023  <20242025  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  <20242025 
<== Date ==> <== Thread ==>

Subject: Re: Truncated LSO
From: "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov>
To: Jure Varlec <jure.varlec at cosylab.com>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 31 Jul 2024 15:06:24 +0000
Actually you don’t _have_ to use pvxs, it depends on the client you’ll be using whether the older pvAccess implementation will work. The long string field modifier turns the lsi.VAL field into an array of char’s, and some clients (CSS Phoebus being one I believe, like the caget -S option) can be told to display the result as a string.

- Andrew
__ 
Complexity is free, you pay for Simplicity

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Jure Varlec via Tech-talk <tech-talk at aps.anl.gov>
Sent: Wednesday, July 31, 2024 1:07 AM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Re: Truncated LSO
 
Hi,

You need to build your IOC with a recent version of PVXS. This will serve records over PVAccess using the newer QSRV2, which handles the lsi record the way one would expect. For a quick test, use softIocPVX that comes with the PVXS module.

Best,
Jure

On 7/31/24 03:09, Di Wang via Tech-talk wrote:
> Caution: This email originated from outside of Cosylab.
>
>
> Hi Dave,
>
> You can try "Long String Field Modifier $" for your purpose.
> Doc: https://urldefense.us/v3/__https://epics.anl.gov/base/R7-0/8-docs/doxygen/filters.html__;!!G_uCfscf7eWS!cnuappWtgqPWAx1TPmDXqDhMvigKvWKoFp2iYWd5Q8WjhwPeqNIiUSy188XGNI75gNbTE1TS62BgbrFUQfin8Q$
>
> $ caput -S plain.VAL$ "this is a string longer than forty characters"
> Old : plain.VAL$
> New : plain.VAL$ this is a string longer than forty characters
>
> $ caget -S plain.VAL$
> plain.VAL$ this is a string longer than forty characters
>
> I am also curious about how to do it through PV Access though...
>
> Cheers,
> Di
>
>> Date: Tue, 30 Jul 2024 17:53:23 +0000
>> From: Dave Bracey <dbracey at fnal.gov>
>> To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
>> Subject: Truncated LSO
>>
>> I'm using an lso record and my string gets truncated to 40 chars:
>>
>> record(lso, "plain_lso")
>> {
>>   field(SIZV, 256)
>> }
>> $ pvput plain_lso "This is a string longer than forty characters"
>> Old : <undefined>               INVALID DRIVER UDF
>> New : 2024-07-30 12:45:33.238  "This is a string longer than forty char"
>> $ pvget plain_lso
>> plain_lso 2024-07-30 12:45:33.238  "This is a string longer than forty char"
>>
>> What am I doing wrong here?
>

References:
Re: Truncated LSO Di Wang via Tech-talk
Re: Truncated LSO Jure Varlec via Tech-talk

Navigate by Date:
Prev: Re: Truncated LSO Kasemir, Kay via Tech-talk
Next: Re: Truncated LSO Dave Bracey 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  2021  2022  2023  <20242025 
Navigate by Thread:
Prev: Re: Truncated LSO Dave Bracey via Tech-talk
Next: Build base 3.15.8 on RHEL 9 Mark Rivers 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  2021  2022  2023  <20242025 
ANJ, 11 Sep 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·