Run Control: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
(Created page with "==== Links ==== <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> * Run States and Transitions * Web Server * odbedit * Monitoring the Exper...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 8: Line 8:
* [[hot-link]]  
* [[hot-link]]  
</div>
</div>


== Introduction ==
== Introduction ==
This section describes Run Control and Monitoring of the experiment.
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 more 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).


A run starts when the MIDAS 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.
; ''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.


* ''Run Control'' describes how that run may be controlled, including
Fundamental to Run Control and Monitoring is the Online Database (ODB) which contains all of the information for an experiment.
**    where the data is to be stored (e.g. tape),
Therefore a run control program requires access only to information in the ODB.
**    on what conditions the run should be allowed to start (e.g. hardware is ready, beam is on)
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]].
**    when it should stop (e.g. beam goes off, hardware failure).


* ''Monitoring'' involves
== Run Control Programs ==
** informing the user on the progress of the run,
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
** displaying statistics or history plots,
successfully, whether data is being taken and saved, and whether any error conditions have occurred).
** sending information or alarm messages to warn the user of any problems.


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.
;[[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.


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.
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.




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]] .
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.

Latest revision as of 16:55, 15 February 2014

Links


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 more 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.