-
Notifications
You must be signed in to change notification settings - Fork 1
Running
- 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.
- Navigate into your work area, and configure the DUNE DAQ environment by running the commands
. dbt-env.sh
anddbt-workarea-env
. - 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.
- 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
- 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).
- 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
.
- 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
- You should now be able to issue commands by typing them in.
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.