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

Subject: recordGenerator record
From: "Kalantari Babak" <[email protected]>
To: <[email protected]>
Date: Fri, 24 Oct 2008 15:56:21 +0200
Hi all,

I have spent some time on writing a new EPICS record type which can
create new record instances at IOC runtime. At the moment the code is in
very preliminary level but it works. "It works" means I am able to
generate instances of almost any record types at IOC runtime. The
behavior is as the following:

1. User specifies record type e.g. "ao", "calc", etc. by CA/DB-write to
a field of "recordGenerator" record 

2. User specifies the channel name by CA/DB-write to a field of
"recordGenerator" record

- As a result a channel with soft device support (soft channel) with
corresponding type and name is generated. 

The generated records behave like a normal record which is generated at
init time from static EPICS database (template files). They can be
accessed by clients, linked to other records, etc. I have mainly used
facilities provided by "dbStatic" library to do this implementation. I
had some difficulties with lock-sets but made a work-around just to get
it working, but I believe it can be done in a proper way. 

One potential usage of this may be to have (soft) waveform records which
can have changeable size. One way to do this is to copy the content of
the generated waveform record, then delete existing record and generate
another one with the new size and fill it in with the data copied from
the previous waveform.

The questions to me are:

1. are there any interests (now/in future) in such a record type, in
another word, is it worth at all to put efforts for such thing? 

2. (if yes) what features such record type can/must have?

Any idea/comment is welcome.  

Regards,
Babak

===============
Babak Kalantari,  
Embedded Software Group,  
Paul Scherrer Institute, CH-5232 Villigen PSI
Tel:+41 56 310 5122  http://www.psi.ch/



Replies:
Re: recordGenerator record Steve Lewis
Re: recordGenerator record Andrew Johnson

Navigate by Date:
Prev: Re: genSub output alignment Dirk Zimoch
Next: Re: recordGenerator record Steve Lewis
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: genSub output alignment Maren Purves
Next: Re: recordGenerator record Steve Lewis
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  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 ·