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: Maren Purves <[email protected]>
To: Tim Mooney <[email protected]>
Cc: epics <[email protected]>
Date: Tue, 07 Apr 2009 15:45:02 -1000
Wondering, if you feed the "A" into a stringin and connect the
stringin to the Gensub?

I know I feed strings into gensubs in places.

Aloha,
Maren

Tim Mooney wrote:
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





References:
gensub constant char input parameter Emmanuel Mayssat
Re: gensub constant char input parameter Tim Mooney

Navigate by Date:
Prev: Re: gensub constant char input parameter Tim Mooney
Next: alarm acknowledgement Terry Cornall
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: Re: gensub constant char input parameter Tim Mooney
Next: alarm acknowledgement Terry Cornall
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 ·