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

Subject: Re: lsi record for more than 40 characters doesn't work
From: "Johnson, Andrew N. via Tech-talk" <[email protected]>
To: dmnr infn <[email protected]>
Cc: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Sun, 1 Dec 2019 05:37:11 +0000
Hi,

How are you reading the lsi value and determining that it only has 40 characters?

Please try doing ‘caget -S RF:getString.VAL$’

If you do ‘cainfo RF:getString’ it will tell you that the VAL field is a normal DBF_STRING type, which can only transport up to 40 characters. You have to use the $ field modifier to gain access to the rest of the string, so ‘cainfo RF:getString.$’ will show the field as an array of 80 characters.

I don’t use StreamDevice myself but I’m assuming that it properly supports the lsi record. However I suspect trying to read your string at 5Hz as your SCAN field currently shows is probably not a good idea and may cause other problems.

- Andrew

-- 
Sent from my iPad

> On Nov 30, 2019, at 10:44 PM, dmnr infn via Tech-talk <[email protected]> wrote:
> 
> 
> Hi all,
> I have a .db e .proto made in this way:
> 
> .db
> record(lsi, "RF:getString")
> {
>     field(DESC, "String more than 40 chars")
>     field(SIZV, "80")
>     field(INP, "@MDO.proto getString L0")
>     field(SCAN, ".2 second")
> }
> 
> .proto
> getString {
>     out "STT?";
>     in "%s";
> }
> 
> I want to get a String that is more than 40 characters, and I use a lsi record but I got always 40 chars.
> There is something wrong in my code?
> Thank you
> 

References:
lsi record for more than 40 characters doesn't work dmnr infn via Tech-talk

Navigate by Date:
Prev: Re: pvaClientCPP Release 4.5.0 access to a single sub field that has the correct type Marty Kraimer via Tech-talk
Next: Re: pvaClientCPP Release 4.5.0 access to a single sub field that has the correct type Heinz Junkes 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: lsi record for more than 40 characters doesn't work dmnr infn via Tech-talk
Next: Re: lsi record for more than 40 characters doesn't work Ralph Lange 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  <20192020  2021  2022  2023  2024 
ANJ, 01 Dec 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·