Experimental Physics and Industrial Control System
|
|
Subject: |
Re: Tips for doing conditional logic in EPICS records |
|
From: |
Ralph Lange via Tech-talk <[email protected]> |
|
To: |
EPICS Tech Talk <[email protected]> |
|
Date: |
Mon, 27 Apr 2020 18:16:44 +0200 |
On Mon, 27 Apr 2020 at 18:04, Mooney, Tim M. via Tech-talk < [email protected]> wrote:
One way to do conditional execution in an EPICS database is by using the SELM and SELN fields of a seq record. Set SELM to "Specified", and write a number to the SELN field. If you want more than one of several things to happen, you can write "Mask" to SELM,
and write a bitmap value to SELN, specifying which things to do.
+1
The combination of a calcout record (evaluating conditions) writing to a seq record in "Mask" mode (executing actions) is extremely powerful. As actions can include delays and changing the calcout's fields, that setup is good enough for a small state machine. (You will also win any district level obfuscation contest.)
Cheers, ~Ralph
- Replies:
- Re: Tips for doing conditional logic in EPICS records Mark Davis via Tech-talk
- References:
- Tips for doing conditional logic in EPICS records Mark Davis via Tech-talk
- Re: Tips for doing conditional logic in EPICS records Mooney, Tim M. via Tech-talk
- Navigate by Date:
- Prev:
Re: Tips for doing conditional logic in EPICS records Mooney, Tim M. via Tech-talk
- Next:
Re: Adding new record to EPICS 7 IOC with pvDatabase Joao Paulo Martins 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
2025
2026
- Navigate by Thread:
- Prev:
Re: Tips for doing conditional logic in EPICS records Mooney, Tim M. via Tech-talk
- Next:
Re: Tips for doing conditional logic in EPICS records Mark Davis 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
2025
2026
|
|
ANJ, 19 Mar 2026 |
·
Home
·
News
·
About
·
Talk
·
Base
·
Modules
·
Extensions
·
·
Distributions
·
Download
·
Documents
·
Links
·
Licensing
·
|