Supported external commands - art-daq/artdaq GitHub Wiki
Supported external commands in core artdaq
08-Jan-2013 - KAB - based on discussions within the group
Supported external commands
Commands which affect the state of the process:
- init(string ParameterSet) - initializes (configures) the process (and any associated hardware); returns a success or failure report
- start(integer runNumber) - begins a run; returns a success or failure report
- stop() - ends a run; returns a success or failure report
- pause() - pauses data taking during a run; returns a success or failure report
- resume() - resumes data taking during a run; returns a success or failure report
- shutdown() - prepares the process to be stopped; returns a success or failure report
- soft_init(string ParameterSet) - initializes (configures) some fraction of the software components; returns a success or failure report
- reinit(string ParameterSet) - re-initializes parts of the software (or the hardware) during a run; returns a success or failure report
Commands which gather information:
- report(string which) - returns statistics or error reports from some or all of the components in the process. The “which” argument specifies which statistics to report.
- status() - returns the current externally visible “state”
- reset_stats(string which) - resets some or all of the statistics in the process. The “which” argument specifies which statistics to reset. Returns a success or failure report.
- legal_commands() - returns the subset of the external commands which are currently legal given the state of the process
Externally visible “states”
- Booted
- Ready
- Running
- Paused
- Error
Allowed external commands for each “state”
- Booted
- init(pset)
- Ready
- init(pset)
- soft_init(pset)
- start(runNumber)
- shutdown()
- Running
- pause()
- stop()
- init(pset)
- soft_init(pset)
- reinit(pset)
- Paused
- resume()
- stop()
- init(pset)
- soft_init(pset)
- reinit(pset)
- Error
- init(pset)