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  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: initializing and retrieving aSub record INP field as a constant
From: Mikhail Yurov via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Fri, 5 Aug 2022 16:14:48 -0500
Hello everyone,

A) I am trying to pass several (DOUBLE) constants to my aSub record via INPA-U link fields.
I am new to EPICS and follow the app developer guide's makeBaseApp.pl example.

After modifying the dbSubExample.db (with no other changes) to
record(aSub,"$(user):aSubExample")
{
   field(INAM,"myAsubInit")
   field(SNAM,"myAsubProcess")
   field(FTA,"DOUBLE")
   field(NOA,"10")
   field(INPA,"$(user):compressExample CPP")
   field(FTB,"DOUBLE")
   field(NOB,"1")
   field(INPB,"123")
}
I expected that $(user):aSubExample.B value would be set to 123.
What I get back instead is 
caget $(user):aSubExample.B    
$(user):aSubExample.B           0
while the INPA works as expected. The dbpr shows these links as
INPA: CA_LINK $(user):compressExample CPP NMS                INPB: CONSTANT 123

I am using EPICS R7.0.6.2-DEV. 
The only semi relevant thing that I was able to find was the discussion of this bug

Am I doing something wrong or is it expected behavior?

B) I intend to use this aSub record as an alarm status for the input waveform record of doubles and have INPB-E as an
equivalent to the HIGH LOW HIHI LOLO fields. The goal is to set the appropriate alarm status to highest severity if any element of 
the waveform will fall outside these limits. I was just wondering if something similar has been already implemented?

Thank you
Mikhail

Replies:
Re: initializing and retrieving aSub record INP field as a constant Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: EPICS AD Driver for Phantom VEO 1310 (Vision Research) Wlodek, Jakub via Tech-talk
Next: Re: initializing and retrieving aSub record INP field as a constant Michael Davidsaver via Tech-talk
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  <20222023  2024 
Navigate by Thread:
Prev: EPICS AD Driver for Phantom VEO 1310 (Vision Research) Wlodek, Jakub via Tech-talk
Next: Re: initializing and retrieving aSub record INP field as a constant Michael Davidsaver via Tech-talk
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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·