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  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  2025  Index 1994  1995  1996  1997  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  <20232024  2025 
<== Date ==> <== Thread ==>

Subject: Re: More precise timing for record processing
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Cc: "Sobhani, Alex" <sobhaniba at ornl.gov>
Date: Wed, 31 May 2023 08:44:24 +0200
Another option:

Look at the EVENT scanning mechanism.
You can set as many records as you want to process when specific (you choose the names) IOC-wide "soft" events are happening. Such events can be generated by calling a routine in EPICS Base.

If you create a thread, implementing your dream of a fancy delay mechanism, it can just generate that soft event - and all the records you configured to listen to that event will be processed.
The easiest and most flexible way to create such a facility would be writing a device support based on the asynPortDriver C++ class. In that case, start/stop, configuring the event name and period/frequency, statistics etc. can all happen transparently through device support, at run time. With such an implementation, adding an additional flexible scan period boils down to one more line in a substitutions file.

Cheers,
~Ralph


References:
More precise timing for record processing Sobhani, Alex via Tech-talk
Re: More precise timing for record processing Arnold, Ned D. via Tech-talk
Re: More precise timing for record processing Sobhani, Alex via Tech-talk

Navigate by Date:
Prev: Re: More precise timing for record processing Sobhani, Alex via Tech-talk
Next: Re: Issues with epics module and ISEG HAL service libraries Nariyoshi, Pedro via Tech-talk
Index: 1994  1995  1996  1997  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  <20232024  2025 
Navigate by Thread:
Prev: Re: More precise timing for record processing Sobhani, Alex via Tech-talk
Next: Urgent Negative Feedback Square via Tech-talk
Index: 1994  1995  1996  1997  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  <20232024  2025 
ANJ, 01 Jun 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·