Run Control system description
 




The control of the run is performed by means of two processes, runctl and operator.
In each DAQ node a command server (cmdsrv) runs, which role is also important to understand how the system works.
 



 
Run states

 
The DAQ system state is represented by runctl run state.
Each DAQ process has its own state, that is consistent to the run state unless errors occur, and  works according to it.
Four states are possible for the DAQ system:

Run control commands
Five commands are issued by runctl to cause run state transitions:
Init,  Start,  Pause,  Resume,  End
The following scheme shows the permitted transitions in each run state.

 


Run conditions
The main run conditions are set choosing the run type and whether data are recorded on disk or discarded. Runctl manages more conditions, such as the run number, the max number of events to be acquired, the number of events to be transmitted in a packet, the enabling of zero suppression.

 

Run types
Several run types are available, each corresponding to a DAQ configuration.
Every time you change the run type, you are asked to configure DAQ again.

Node types
The type of a node determines its function in the DAQ system, i.e. which processes run on the node.
Node role in the system and corresponding processes are listed for each node type: