Hi Susanna,
I encountered the same issue when designing genSub records
for the LEDA Run Permit system back in 1998 - please see my
tech-talk posting, which includes a code listing, at:
http://www.aps.anl.gov/epics/tech-talk/1998/msg00850.php
Best regards,
Peregrine
On Thu, 5 Aug 2004, Susanna Jacobson wrote:
> Hi folks,
>
> This concerns subroutine and genSub records in EPICS R3.13.4.
>
> I need to pass a string into a subroutine or general subroutine
> record at initialization time because I don't want to fix the information
> in the code for the record's init and process routines.
> So I assigned the string to an input link in the .db file, just as one
> would pass a numeric constant. However, the record interprets the string
> as a PV name, which generates a lot of pointless network traffic as link
> processing looks for a record with that name.
>
> Is there a way to tell the record that the string is a constant and
> not a PV name? Do I have to use a string record to hold the string
> and use the input link as a link? Or is there another, better way to
> do it?
>
> Thanks in advance,
> Susanna
> --
> =====================================================================
> Susanna Jacobson MS 10-110
> [email protected] Lawrence Berkeley National Laboratory
> VOICE: (510) 486-7801 1 Cyclotron Road
> FAX: (510) 486-7374 Berkeley, CA 94720
> =====================================================================
>
--
Peregrine M. McGehee Department of Astronomy
New Mexico State University, Las Cruces, New Mexico
- References:
- How to pass constant string into a genSub or sub record Susanna Jacobson
- Navigate by Date:
- Prev:
How to pass constant string into a genSub or sub record Susanna Jacobson
- Next:
CA Gateway problem Dirk Zimoch
- 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
- Navigate by Thread:
- Prev:
How to pass constant string into a genSub or sub record Susanna Jacobson
- Next:
CA Gateway problem Dirk Zimoch
- 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
|