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?
>