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

Subject: Basic misunderstanding concerning record chaining in sub records
From: Elliott Wolin <[email protected]>
To: [email protected]
Date: Fri, 27 Feb 2009 13:26:55 -0500
Hi,

I can't get one sub record to reference another one via the INPA link:

record(sub,"$(user):dlExample1") {
   field(INAM,"dlInit1")
   field(SNAM,"dlProc1")
   field(SCAN,"1 second")
}

record(sub,"$(user):dlExample2") {
   field(INAM,"dlInit2")
   field(SNAM,"dlProc2")
   field(SCAN,"1 second")
   field(INPA,"$(user):dlExample1.VAL")
}

In the code for dlProc2 I print what I think should be the value of the first record:

long dlProc2(subRecord *precord) {
 printf("dlProc2 inpa name is %s, val is %f\n",precord->inpa, precord->a);
 return 0;
}

But precord->a always is 0.0, even though the first record's value is changing:

dlProc1 val for wolinHost:dlExample1 is currently 50.000000
dlProc2 inpa name is wolinHost:dlExample1, val is 0.000000
dlProc1 val for wolinHost:dlExample1 is currently 60.000000
dlProc2 inpa name is wolinHost:dlExample1, val is 0.000000

Note that if I set INPA to a constant (e.g. 10.0),  everything works fine.

What am I missing?

Thanks,

--

				Sincerely,
					Elliott


================================================================================


Those raised in a morally relative or neutral environment will hold
		    no truths to be self-evident.
Elliott Wolin
Staff Physicist, Jefferson Lab
12000 Jefferson Ave
Suite 8 MS 12A1
Newport News, VA 23606
757-269-7365

================================================================================


Navigate by Date:
Prev: EPICS drivers or an EPICS interface to lantronix Embedded Device server communicating over TCP/IP Sandeep Babel
Next: RE: EPICS drivers or an EPICS interface to lantronix Embedded Deviceserver communicating over TCP/IP Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: EPICS drivers or an EPICS interface to lantronix Embedded Deviceserver communicating over TCP/IP Mark Rivers
Next: Useless error messages in EPICS Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·