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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Re: sseq record and strings
From: "J. Lewis Muir" <jlmuir@anl.gov>
To: Pierrick Hanlet <hanlet@fnal.gov>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Fri, 29 Jul 2011 10:17:12 -0500
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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
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 ·