Skip to content

Running daq_application with the FELIX

ShyamB97 edited this page Oct 27, 2021 · 4 revisions

tested with dunedaq-v2.8.0

First ensure you have setup your dune-daq environemnt and have run dbt-workarea-env. To get a set of dataflow patterns (WIB frames with meaningful hits), clone the dtp-patterns repository into your work area:

git clone https://gitlab.cern.ch/dune-daq/readout/dtp-patterns.git

Ensure the internal emulators are enabled:

femu -d 0 -e
femu -d 1 -e

Then load the emulator with the pattern file:

flx-config -d 0 load dtp-patterns/EMUInput/<name of emulator file>
flx-config -d 1 load dtp-patterns/EMUInput/<name of emulator file>

Note a description of each configuration can be found in the dtp-patterns readme.

Now create a daq_application config file:

python -m flxlibs.app_confgen -n 10 -x felix-app.json

where in this example we set the number of input sources to 10 and enable readout from the FELIX card.

then run the application

daq_application -c stdin://felix-app.json -n felix_10_links

and run the following commands:

init
conf
start
record
stop
^D

The record command will dump the output of daq-application to an output file per input source:

ls -lah output_*
-rw-r--r--. 1 epdtdi epdtdi 713M Oct 22 16:11 output_0.out
-rw-r--r--. 1 epdtdi epdtdi 729M Oct 22 16:11 output_1.out
-rw-r--r--. 1 epdtdi epdtdi 737M Oct 22 16:11 output_2.out
-rw-r--r--. 1 epdtdi epdtdi 737M Oct 22 16:11 output_3.out
-rw-r--r--. 1 epdtdi epdtdi 745M Oct 22 16:11 output_4.out
-rw-r--r--. 1 epdtdi epdtdi 761M Oct 22 16:11 output_5.out
-rw-r--r--. 1 epdtdi epdtdi 769M Oct 22 16:11 output_6.out
-rw-r--r--. 1 epdtdi epdtdi 777M Oct 22 16:11 output_7.out
-rw-r--r--. 1 epdtdi epdtdi 801M Oct 22 16:11 output_8.out
-rw-r--r--. 1 epdtdi epdtdi 841M Oct 22 16:11 output_9.out

Note these files will be overwritten so make sure to rename or move them before running different configurations.

Tip: the contents of a file can be printed to the terminal using hexdump