Allan,
You may be interested in the set of custom records that were originally
developed by the Gemini 8-m Telescopes Project for dealing with command
completion. Simple descriptions follow...
Command Action Directive (CAD)
The CAD record supports the essential features of a command including
validation of the input arguments, clearing and presetting of the inputs,
and distinguishing start and stop requests. The validation and argument
processing routine is supplied by the applications programmer. Although
many EPICS database records process when their inputs are written to, the
CAD record only processes when its trigger or directive field is updated,
thus ensuring that the command arguments constitute a synchronous and
consistent set. When a set of arguments have been successfully validated,
the supplied routine transfers that set (or values based on that set) to
the CAD record's outputs. The CAD record then activates the processing link
associated with the value of the directive to trigger other actions in the
database.
Command Action Response (CAR)
The CAR record holds the state of a command that has been accepted by the
database. This record is essentially a simple state machine that
transitions between IDLE, BUSY, ERROR, and PAUSED in response to inputs.
Apply
The Apply record synchronizes a collection of commands by driving the
processing of a set of CAD records in fixed order, and by accepting the
validation statuses of these CAD records as inputs. This record accepts CAD
record directives that are fanned out to the processed commands. The Apply
record also increments a client ID field each time the directive is
updated.
Aloha,
Peregrine
Peregrine M. McGehee Project Engineer: LEDA Control System
(505) 667-3273 [email protected]
LANSCE-8 Controls & Automation Los Alamos National Laboratory
- Navigate by Date:
- Prev:
RE: Proposal for boosted Symb device support Jeff Hill
- Next:
Re: Greenspring rs422 support Marty Kraimer
- 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: SNC crashes William Lupton
- Next:
synchronizing client requests & completions Alan K Biocca
- 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
|