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

Subject: Re: How calcExample calls myAsubProcess ?
From: Eric Norum <[email protected]>
To: [email protected]
Cc: [email protected]
Date: Thu, 2 Sep 2010 12:42:15 -0700
Have a look at the database entry for the subroutine record:

record(aSub,"$(user):aSubExample")
{
    field(INAM,"myAsubInit")
    field(SNAM,"myAsubProcess")
    field(FTA,"DOUBLE")
    field(NOA,"10")
    field(INPA,"$(user):compressExample CPP")
}

Since INPA is CPP ("channel process passive") it places a monitor on the compressExample record, which in turn has a monitor on the aiExample record which in turn is forward linked from the calExample record which scans once per second.

So the calcExample kicks off the full chain of record processing at 1 Hz.

See section 5.12.1 INLINK of the application developer's guide for details. 

On Sep 2, 2010, at 7:38 AM, [email protected] wrote:

> Hello,
> 
> I'm diving into the source code of the default example given with epics installation and I don't find how the "calcExample" record (example/testApp/db/dbExample1.db) calls the "myAsubProcess" method (example/testApp/src).
> 
> I understood that the SCAN field runs the periodic call to this method, but how does it call it ?
> 
> Cheers
> Max
> 
> 

-- 
Eric Norum
[email protected]






References:
How calcExample calls myAsubProcess ? M . VERDIER

Navigate by Date:
Prev: Re: msi again Linda.Pratt
Next: Re: msi again Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: How calcExample calls myAsubProcess ? M . VERDIER
Next: Re: epics site off Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·