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 2019 2020 2021 2022 2023 2024 2025 | 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 2019 2020 2021 2022 2023 2024 2025 |
<== 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