Experimental Physics and Industrial Control System
|
Hi Jakub,
Do you have control over the asynPortDriver code? If so, then I think you can do the following:
- Add a new asynInt32 TRIGGER parameter
- Add a new bo record myIOC:myTrigger that writes to the TRIGGER parameter
- The PV in the external IOC can write directly to myIOC:myTrigger to send the trigger.
- Alternatively myIOC:myTrigger.DOL can contain the name of the external PV where it gets its value. That link can be set to CP, and it can be changed dynamically at run time.
Is this what you are looking for?
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of
Wlodek, Jakub via Tech-talk
Sent: Friday, April 12, 2024 12:17 PM
To: tech-talk at aps.anl.gov
Subject: Example of using a record field from an external IOC as an INPA link on a calcout record
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()?
|
- References:
- Example of using a record field from an external IOC as an INPA link on a calcout record Wlodek, Jakub via Tech-talk
- Navigate by Date:
- Prev:
Example of using a record field from an external IOC as an INPA link on a calcout record Wlodek, Jakub via Tech-talk
- Next:
Re: Remote reset of MVME-2700 possible through serial console Maren Purves 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:
Example of using a record field from an external IOC as an INPA link on a calcout record Wlodek, Jakub via Tech-talk
- Next:
PVXS monitor - No dependence on MPMCFIFO workqueue Eusebio Naif Al-Soliman Fuentes 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 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|