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

Subject: Re: Creating INLINK/OUTLINK in record support
From: Andrew Johnson <[email protected]>
To: [email protected]
Cc: "Zhang, Dehong" <[email protected]>
Date: Thu, 23 Aug 2012 17:06:55 -0500
Hi Dehong,

On 2012-08-23 Zhang, Dehong wrote:
> 
> Is it possible to create these things dynamically inside a record, so that
> I can access PVs on another IOC, without listing them all in the dbd file
> of my custom record?
> 
> In other words, is there something like the
> dbNameToAddr
> to use for creating and accessing LINKs?

Anything is possible if you're willing to write enough code, but...

The dbNameToAddr() routine is only for local PVs; CA links are implemented 
using the code in dbCa, and initializing those links happens at iocInit() or 
whenever the INP/OUT link value is changed.  However there isn't really a 
public API for that kind of thing, and I don't really recommend that you try 
to do that.

It sounds to me like you're creating a new record type when maybe you should 
be writing a State Notation Language program.  Why don't you step back a bit 
and reconsider what you're trying to do?  Feel free to explain here if you 
want more advice, but you will need to explain the bigger picture because I 
wouldn't recommend trying what you describe above.

HTH,

- Andrew
-- 
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte

Replies:
RE: Creating INLINK/OUTLINK in record support Zhang, Dehong
References:
Creating INLINK/OUTLINK in record support Zhang, Dehong

Navigate by Date:
Prev: Re: Motor Record 6-5-2 backlash issue? Kurt Goetze
Next: Re: Creating INLINK/OUTLINK in record support Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Creating INLINK/OUTLINK in record support Zhang, Dehong
Next: RE: Creating INLINK/OUTLINK in record support Zhang, Dehong
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  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 ·