Hi:
Ralph's suggestion of an "OUT" link is closer to your original question how to "put" a value into another record.
In most cases, Mark's suggestion to "get" the value might be better:
If all works, the INP link shows you where the value is read.
In case of problems, "MyLocalRecord" would show an error because it cannot read its INP.
With the "OUT" link, if the IOC that holds MyRecord is stopped, MyOtherRecord would simply not be written, but you might not notice that for a long time.
Cheers
-Kay
On Feb 12, 2014, at 9:13 AM, Ralph Lange <[email protected]> wrote:
> On 12.02.2014 14:28, Mark Rivers wrote:
>> You can do that with a Channel Access link. The exact syntax depends on the record type, but something like the following:
>>
>> record (ai, "MyLocalRecord") {
>> field(INP, "MyRemoteRecord CP MS")
>> }
>>
>> This will make the value of MyLocalRecord be fetched from MyRemoteRecord every time MyRemoteRecord posts a channel access monitor.
>
> If you do not specify the type of your link, e.g.,
>
> record (ao, "MyRecord") {
> field(OUT, "MyOtherRecord")
> }
>
>
> EPICS will determine the link type at boot time.
> If the target record is found on the same host, that link will be a
> database link, otherwise the IOC will try to resolve it remotely (using
> Channel Access).
>
> Cheers,
> ~Ralph
>
- References:
- Channel Access Link Antonio Borondo
- RE: Channel Access Link Mark Rivers
- Re: Channel Access Link Ralph Lange
- Navigate by Date:
- Prev:
record processing time Vishnu Patel
- Next:
RE: record processing time Mark Rivers
- 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:
Re: Channel Access Link Ralph Lange
- Next:
record processing time Vishnu Patel
- 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
|