Experimental Physics and Industrial Control System
On 1/21/22 19:39, Wang, Andrew via Tech-talk wrote:
This is a far-fetched question, but I was wondering whether there is a possibility of executing streamReload, or a similar functionality, within a C function. The reason why I ask is because I saw within this Github link (https://github.com/epics-modules/ioczed/blob/master/zzzApp/Db/streamExample.db <https://github.com/epics-modules/ioczed/blob/master/zzzApp/Db/streamExample.db>) that the SUB record calls streamReload. However, I couldn’t locate the source code for that, so I am not entirely sure how it is used and what its arguments are. Thoughts?
The registrar code adding both the function callable
from subRecord as well as iocsh.
https://github.com/paulscherrerinstitute/StreamDevice/blob/dfbd308d4602e7cb99d7f60ddf35909a70f41c4f/src/StreamEpics.cc#L297-L307
So you could do something like
iocshCmd("streamReload");
cf. iocsh.h from Base.
Since it is already callable from a subRecord I assume
it is thread-safe.
- Replies:
- Re: Calling the streamReload IOC Shell function within C Zimoch Dirk (PSI) via Tech-talk
- References:
- Calling the streamReload IOC Shell function within C Wang, Andrew via Tech-talk
- Navigate by Date:
- Prev:
Calling the streamReload IOC Shell function within C Wang, Andrew via Tech-talk
- Next:
Re: Calling the streamReload IOC Shell function within C Zimoch Dirk (PSI) 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>
2023
2024
- Navigate by Thread:
- Prev:
Calling the streamReload IOC Shell function within C Wang, Andrew via Tech-talk
- Next:
Re: Calling the streamReload IOC Shell function within C Zimoch Dirk (PSI) 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>
2023
2024