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...")
 
No edit summary
Line 14: Line 14:
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.
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.


* ''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)
:*    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).
:*    when it should stop (e.g. beam goes off, hardware failure).


* ''Monitoring'' involves
; ''Monitoring'' :involves
** informing the user on the progress of the run,
:* informing the user on the progress of the run,
** displaying statistics or history plots,
:* displaying statistics or history plots,
** sending information or alarm messages to warn the user of any problems.
:* sending information or alarm messages to warn the user of any problems.




Line 29: Line 29:


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

Revision as of 14:58, 15 October 2013

Links

Introduction

This section describes Run Control and Monitoring of the experiment.

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.

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.