Run Control: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user 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.
 
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
Line 24: 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 States and Transitions]]==


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

Latest revision as of 15: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.