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

Subject: Re: gensub constant char input parameter
From: Tim Mooney <[email protected]>
To: Emmanuel Mayssat <[email protected]>
Cc: epics <[email protected]>
Date: Tue, 07 Apr 2009 19:40:06 -0500
Emmanuel,

You can't.  If a link's initial value is not entirely numeric,
EPICS will treat it as a PV name, rather than as a constant value
with which to initialize the value field associated with the link.
"Entirely numeric" means "completely eaten by strtol() or epicsStrtod()",
according to dbStaticLib.c's dbPutString().

--
Tim Mooney ([email protected]) (630)252-5417
Beamline Controls & Data Acquisition Group
Advanced Photon Source, Argonne National Lab.

Emmanuel Mayssat wrote:
Hello,

I would like to pass a CONSTANT char to gensub as an input parameter
(INPA).
record (genSub, "myGS") {
  ...
  field(INPA, "A")
  ...
}

How can I make gensub recognize A as a CONSTANT (and not as a PV
(CA_LINK))?

--
Emmanuel



Replies:
Re: gensub constant char input parameter Maren Purves
References:
gensub constant char input parameter Emmanuel Mayssat

Navigate by Date:
Prev: Re: longout record issue Emmanuel Mayssat
Next: Re: gensub constant char input parameter Maren Purves
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: gensub constant char input parameter Emmanuel Mayssat
Next: Re: gensub constant char input parameter Maren Purves
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·