By calling post_event() - or using an eventRecord that will call
post_event() if processed.
(See sections 5.5 and 17.3.6 of the AppDevGuide.)
Note, though, that the mechanism is meant for having arbitrary numbers
of records react on IOC global events.
For your example, the "other" calc record should probably rather CPP
link to the VAL field of the first and compare it to 10, or CPP link to
the STAT field of the first and compare it to the numerical equivalent
of HIHI, depending on what exactly should trigger the "other" record's
processing: the value being 10, or the status being HIHI. (Your mail was
a bit inconsistent in that detail.)
Hope this helps,
Ralph
Csaba Gajo wrote:
Hello,
I was reading the documentation about events, and was trying to make a
simple program to see how it works. In it I have a calc record, which
increments itself by 1 each second. When the values is 10, it raises a
HIHI signal.
I also have another calc record, whose SCAN field is Event, and it's
supposed to react when the value of the first calc reaches 10.
In the documentation, I was reading that when a user-defined event is
thrown, "all records will be processed whose SCAN field specifies
event and whose event number is the same as the generated event". So,
obviously HIHI is not a user-defined event. How should I throw an
event when the value of calc1 reaches 10?
Regards, Csaba
- Replies:
- RE: Events Dalesio, Leo
- References:
- Events Csaba Gajo
- Navigate by Date:
- Prev:
Re: Events nda
- Next:
Re: Problems with installing EPICS Andrew Johnson
- 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: Events Paul Sichta
- Next:
RE: Events Dalesio, Leo
- 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
|