Skip to content

Running

strilov edited this page Oct 27, 2021 · 15 revisions

Environment preparation

  1. Prepare your work area as per instructions given here: https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-buildtools.

If running timing DUNDE DAQ modules built from source, ignore the step above. If running the pre-built timing packages on CVMFS, you need this step.

  1. Navigate into your work area, and configure the DUNE DAQ environment by running the commands . dbt-env.sh and dbt-workarea-env.
  2. To send commands to the timing modules, you will need a configuration file describing what commands are available to send. To generate a configuration file which is suitable for running the timing DAQ modules for the vertical drift coldbox, execute the following command
python -m timinglibs.timing_app_confgen -m PROD_MASTER_VDC

This will generate the configuration file timing_app.json in the same directory as the one in which the command was executed. There are a number of configuration parameters that can passed via options to the command above. These are described here: https://dune-daq-sw.readthedocs.io/en/latest/packages/timinglibs/#python-configuration-generation.

Running with a restcmd interface

  1. Start an instance of the DUNE DAQ application, with a restcmd interface listening on the localhost port 12345, by executing the command
daq_application --name timing_app --commandFacility rest://localhost:12345
  1. Start another session on the machine on which the DUNE DAQ application is running, and prepare your running environment (same command as step 1 in the previous section).
  2. To start the command transmit end of the restcmd interface, execute the command
send-recv-restcmd.py --interactive --file timing_app.json

At this point you should see the list of available commands, e.g. init, start, conf, master_io_reset.

Running with a local stdin interface

  1. Start an instance of the DUNE DAQ application, with the configuration file passed in directly, by executing the command
daq_application --name timing_app -c stdin://timing_app.json
  1. You should now be able to issue commands by typing them in.

Commands

To initialise the timing master, and start partition 0, execute the following commands.

init
conf
start
master_io_reset
master_set_timestamp
partition_configure
partition_enable

After the sending of each command, you should see the DUNE DAQ application responding via the session running the application.