EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: A new subroutine record
From: Andy Foster <[email protected]>
To: Epics Questions <[email protected]>
Date: Tue, 12 Nov 1996 16:55:17 +0000 (GMT)
Dear Folks,

Some time ago, I think it was about 1 year, there was talk of developing
a new Subroutine record for EPICS base.

During the past month, I have developed a record with the following properties:

* Up to 10 input fields.
* Up to 10 output fields. 
* The types of both the input and output fields are completely configurable by the user.
* User defined structures, arrays, scalars, arrays of structures can be passed on the links.
* The routine called at process time can be changed dynamically after the
  database has been loaded. The name of the routine can either be fetched in over a link
  from another record or written directly into the SNAM field.
* The user can configure the record to decide when events will be posted for the
  output fields. This can be: NEVER, ALWAYS or just when any element of an array changes
  value.
* The VAL field holds the returned value from the process routine.
* Events are posted on the SADR field when the subroutine being called changes.

I would say the record is in "beta" and would welcome comments from anyone who
decides to try it out. Any suggestions for improvements and/or additional features 
are welcome.

The development was done under epics3.12.2. I hope there are no compatibility problems
with 3.13. Please let me know if there are.

Finally, I would like to thank Marty for his advice and suggestions over the past weeks.
Any bugs are entirely my responsibility.

The tar file, which contains the source code, example databases and full documentation
in the EPICS Record Reference Manual style, can be found at:

ftp.ast.cam.ac.uk:/pub/ajf/genSub.tar.gz
(There is also a link to this from my home page).

Cheers,

Andy

===================================================================================
Andy Foster
Royal Greenwich Observatory	Tel:       44 (0)1223 374899 (direct)
Madingley Road			Fax:       44 (0)1223 374700
Cambridge			E-mail:    [email protected]
CB3 0HA				Home Page: http://www.ast.cam.ac.uk/~ajf
UK


Navigate by Date:
Prev: Re: Hardware Configuration Ralph Lange
Next: Help w/PulseTrain and PulseCounter using Mizar 8310 board Tien Doan
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Hardware Configuration Marty Kraimer
Next: Help w/PulseTrain and PulseCounter using Mizar 8310 board Tien Doan
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·