On 7/28/11 11:04 AM, Pierrick Hanlet wrote:
> Hi,
> I have an sseq record which I would like to use to fill both the value and
> the EGU field of another record. I'm OK with filling the value.
>
> Namely, I have a stringin record with value "Torr"; I'll call it myRecord:UNIT.
> I want to use myRecord:UNIT to fill the EGU field of another record. If
> I understand the documentation (I clearly don't), I ought to be able to do:
>
> field(DOLx,"myRecord:UNIT")
> field(LNKx,"anorhterRecord:P.EGU PP")
>
> I've tried numerous things, but nothing works. Please help. I'm at my wits end.
Hi, Pierrick.
It works for me. I loaded the attached database in a soft IOC
like this
dbLoadRecords("sseq-egu.db", "P=ioc23:")
and then did the following from a shell:
$ caget ioc23:Pressure.EGU
ioc23:Pressure.EGU
$ caput ioc23:SetPressureEgu.PROC 1
Old : ioc23:SetPressureEgu.PROC 0
New : ioc23:SetPressureEgu.PROC 1
$ caget ioc23:Pressure.EGU
ioc23:Pressure.EGU Torr
I suggest you try to reduce your database to as simple a
database as you can that exhibits the problem.
Lewis
#
# Sets record's EGU field from stringin record's VAL field using sseq.
#
# Parameters:
# $(P) PV name prefix (e.g. "ioc23:")
#
record(stringin, "$(P)Unit") {
field(VAL, "Torr")
field(PINI, "YES")
}
record(ai, "$(P)Pressure") {
field(VAL, "760")
field(PINI, "YES")
}
record(sseq, "$(P)SetPressureEgu") {
field(DOL1, "$(P)Unit.VAL NPP MS")
field(LNK1, "$(P)Pressure.EGU NPP MS")
}
- References:
- sseq record and strings Pierrick Hanlet
- Navigate by Date:
- Prev:
RE: Controls Network Monitoring Tools Zhou, Jingchen
- Next:
EPICS Eric Norum
- 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: sseq record and strings Ralph Lange
- Next:
EPICS Eric Norum
- 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
|