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  <20112012  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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: long strings in edm
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Fri, 17 Jun 2011 12:13:22 -0500
Hi Pete,

On 2011-06-17 [email protected] wrote:
> In epics 3.14.11 it is possible to caput a long string (> 40 characters)
>  using the following:
> 
> caput -S mypv$ "some string that is longer than 40 characters"

Not quite; $ is a legal character in a record name, so to make this a long 
strings the $ *must* follow the . in the PV name, i.e. you have to use mypv.$ 
or mypv.VAL$.  The $ field modifier only works for fields of type DBF_*LINK or 
for DBF_STRING fields which have size(>40) in the record type's DBD file.

> Is there an equivalent for writing long strings from an edm (version
> 1-12-28) text control or similar widget?

Yes, when writing EDM John Sinclair copied MEDM's support for string I/O to a 
PV whose native type is an array of chars (which is what the above field 
modifier does).  Just point the regular EDM text widgets at a suitable PV.

> (In my particular case I want to write a long PV name into a DOL field)

You should be able to use this approach, mypv.DOL$

- Andrew
-- 
Optimization is the process of taking something that works and
replacing it with something that almost works, but costs less.
-- Roger Needham

Replies:
RE: long strings in edm peter.leicester
References:
long strings in edm peter.leicester

Navigate by Date:
Prev: long strings in edm peter.leicester
Next: Re: Announce: pyexpander - a macro processor also capable of replacing msi Goetz Pfeiffer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: long strings in edm peter.leicester
Next: RE: long strings in edm peter.leicester
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·