EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  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  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CAMAC IO
From: Luedeke Andreas <[email protected]>
To: Tim Mooney <[email protected]>, [email protected]
Date: Wed, 10 Oct 2007 15:16:14 +0200
Tim Mooney wrote:
Unrelated question is, Is it possible to modify a field value in a record
from within a subroutine? To be more specific, I have a sub record and from
its process subroutine I want to modify a field in another record. Can that
be done?
Yes, but it's not a good idea to do it. Better to use the genSub record, because it has output links.
Instead of using a 'sub' / 'gensub' record at all I prefer to write device supports for calculations.
It is easier to extend and each record type is native, e.g. it has alarm limits, units, dead bands, etc.
You can connect an arbitrary number of records to one device support.
E.g. use 'ao' records to input to the device support and 'ai' records as containers for the calculation results.
The DTYP specifies the device support and INP/OUT links specify the input/output variable in my device support.


An additional 'ao' record can copy the result to your field of another record.

- - Andreas
References:
CAMAC IO Szalata, Zenon M.
Re: CAMAC IO Tim Mooney

Navigate by Date:
Prev: Re: CAMAC IO Tim Mooney
Next: Re: firewire video on RTEMS-4.6.x-MVME5500 Kate Feng
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: CAMAC IO Tim Mooney
Next: ASYN - calling read after interrupt - fix :) Heinrich du Toit
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·