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  2023  <2024 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
<== Date ==> <== Thread ==>

Subject: Example of using a record field from an external IOC as an INPA link on a calcout record
From: "Wlodek, Jakub via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 12 Apr 2024 17:17:15 +0000
Hello all,

I am currently working on an interesting setup where I would like to use an external signal (i.e. PV from another IOC) within an asynPortDriver to trigger certain behavior (basically as a way to simulate hardware triggers for a device that does not allow for them).

Could anyone point me to an example database that can do something like this? I was thinking of having the external signal be either a binary or scalar signal - and write some logic for "triggering" based on rising/falling edge when using the binary signal, or with simple start/gate/step for scalars.

Also, if possible, rather than specifying the trigger source PV name as an environment variable at IOC boot, I'd be interested in being able to adjust the PV name for this INLINK dynamically, i.e. from another record in the database. I was thinking of using a stringout and an scalcout that will compose the string with the CP/NMS modifiers for INPA dynamically. Is this actually possible or is the CA link only made at iocInit()?

Thanks,
Jakub





Replies:
RE: Example of using a record field from an external IOC as an INPA link on a calcout record Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Readback of output variables in adsDriver Torsten Bögershausen via Tech-talk
Next: RE: Example of using a record field from an external IOC as an INPA link on a calcout record Mark Rivers 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: Re: Fw: Remote reset of MVME-2700 possible through serial console Kevin Peterson via Tech-talk
Next: RE: Example of using a record field from an external IOC as an INPA link on a calcout record Mark Rivers 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
ANJ, 15 Apr 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·