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: | Re: Listen to multiple events |
From: | Korhonen Timo <[email protected]> |
To: | Dehong Zhang <[email protected]> |
Cc: | [email protected] |
Date: | Tue, 18 Mar 2008 13:09:46 +0100 |
Hi Dehong,
Can one EPICS record listen to more than one event? If yes, how could set it up?
An alternative method to the forward links is to use the "soft" event scan. For that, Stephanie's example would need the following modification:
...other ai fields here... }
Do you mean can one record be processed on different events? If that is what you mean, then you could FLNK to the record from both event records. For instance, if I have 2 EVR event records (for EVR card 0), I could FLNK to the same record from both of them like this:
record(event, "Test:Event1") { field(DTYP, "MRF Event Receiver") field(INP, "#C0 S1 @") field(SCAN, "I/O Intr") field(VAL, "1") field(FLNK, "Test:RecordToProcessOnEvent1or2") } record(event, "Test:Event2") { field(DTYP, "MRF Event Receiver") field(INP, "#C0 S2 @") field(SCAN, "I/O Intr") field(VAL, "2") field(FLNK, "Test:RecordToProcessOnEvent1or2") } record(ai, "Test:RecordToProcessOnEvent1or2") { field(SCAN, "Passive") ...other ai fields here... }
Stephanie Allison