Run Control: Difference between revisions
No edit summary |
|||
Line 8: | Line 8: | ||
* [[hot-link]] | * [[hot-link]] | ||
</div> | </div> | ||
== Introduction == | == Introduction == | ||
Under Midas, a run starts when the system receives a '''Start Transition''' , and continues until it receives a '''Stop transition'''. In the simplest case, this is when the commands "Start" and "Stop" are issued from the [[ODB|ODBedit command]]. Refer to [[Run States and Transitions]] for details. | |||
;''Run Control'' : describes how that run may be controlled, including | ;''Run Control'' : describes how that run may be controlled, including | ||
:* where the data is to be stored (e.g. tape), | :* where the data is to be stored (e.g. tape), | ||
:* | :* on what conditions the run should be allowed to start (e.g. hardware is ready, beam is on) | ||
:* | :* when it should stop (e.g. beam goes off, hardware failure). | ||
; ''Monitoring'' :involves | ; ''Monitoring'' :involves | ||
Line 22: | Line 23: | ||
:* sending information or alarm messages to warn the user of any problems. | :* sending information or alarm messages to warn the user of any problems. | ||
Fundamental to Run Control and Monitoring is the Online Database (ODB) which contains all of the information for an experiment. | |||
Fundamental to Run Control and Monitoring is the Online Database (ODB) which contains all of the information for an experiment. Therefore a run control program requires access only to information in the ODB. | Therefore a run control program requires access only to information in the ODB. | ||
Programming exactly what data is read during the run falls under [[Frontend Operation]] ,and analyzing the data during or after the run is described under [[Data Analysis]]. | |||
Programming exactly what data is read during the run falls under [[Frontend Operation]] , and analyzing the data during or after the run is described under [[Data Analysis]] . | |||
== Run Control Programs == | == Run Control Programs == | ||
Users must have some way of controlling the experiment (i.e. starting and stopping a run, changing the | Users must have some way of controlling the experiment (i.e. starting and stopping a run, changing the run parameters etc.) and of determining the progress of the run (e.g. whether the run started | ||
run parameters etc.) and of determining the progress of the run (e.g. whether the run started | |||
successfully, whether data is being taken and saved, and whether any error conditions have occurred). | successfully, whether data is being taken and saved, and whether any error conditions have occurred). | ||
Several utilities for Run Control are provided in the MIDAS package: | Several utilities for Run Control are provided in the MIDAS package: | ||
; [[Web Server |MIDAS Web Server]] ([[mhttpd]]): is the usual choice for experimenters, since it provides a graphical interface, and is used both for run control and monitoring. It has many features not available in <span style="color:darkcyan;">''odbedit''</span>, such as history display, electronic logbook, custom pages and alias-links (see [[Web Server]]). However, it has limited functionality as an ODB editor. | |||
; [[Web Server |MIDAS Web Server]] ([[mhttpd]]) | |||
;[[odbedit]] : provides a simple command line interface. It is very useful for debugging, is often quicker and simpler to use, and is a fully functional odb editor (hence its name). It has limited monitoring capability. | ;[[odbedit]] : provides a simple command line interface. It is very useful for debugging, is often quicker and simpler to use, and is a fully functional odb editor (hence its name). It has limited monitoring capability. | ||
Other utilities for monitoring are also provided, such as | Other utilities for monitoring are also provided, such as |
Revision as of 15:52, 15 February 2014
Links
- Run States and Transitions
- Web Server
- odbedit
- Monitoring the Experiment
- Customizing the Experiment
- hot-link
Introduction
Under Midas, a run starts when the system receives a Start Transition , and continues until it receives a Stop transition. In the simplest case, this is when the commands "Start" and "Stop" are issued from the ODBedit command. Refer to Run States and Transitions for details.
- Run Control
- describes how that run may be controlled, including
- where the data is to be stored (e.g. tape),
- on what conditions the run should be allowed to start (e.g. hardware is ready, beam is on)
- when it should stop (e.g. beam goes off, hardware failure).
- Monitoring
- involves
- informing the user on the progress of the run,
- displaying statistics or history plots,
- sending information or alarm messages to warn the user of any problems.
Fundamental to Run Control and Monitoring is the Online Database (ODB) which contains all of the information for an experiment. Therefore a run control program requires access only to information in the ODB. Programming exactly what data is read during the run falls under Frontend Operation ,and analyzing the data during or after the run is described under Data Analysis.
Run Control Programs
Users must have some way of controlling the experiment (i.e. starting and stopping a run, changing the run parameters etc.) and of determining the progress of the run (e.g. whether the run started successfully, whether data is being taken and saved, and whether any error conditions have occurred).
Several utilities for Run Control are provided in the MIDAS package:
- MIDAS Web Server (mhttpd)
- is the usual choice for experimenters, since it provides a graphical interface, and is used both for run control and monitoring. It has many features not available in odbedit, such as history display, electronic logbook, custom pages and alias-links (see Web Server). However, it has limited functionality as an ODB editor.
- odbedit
- provides a simple command line interface. It is very useful for debugging, is often quicker and simpler to use, and is a fully functional odb editor (hence its name). It has limited monitoring capability.
Other utilities for monitoring are also provided, such as
- mstat
- a simple monitoring task, and
- mdump
- which can dump the raw data banks from a running experiment.
Various keys in the ODB can be customized for Run Control. This involves creating and/or editing keys using odbedit or the Web Server . Where the customization is only relevent to mhttpd, it will be described in the appropriate mhttpd section.