Running DAQ Interface » History » Version 221
John Freeman, Mar-4-2017: Jan-9-2017:
This wiki page used to contain instructions on how to run the classic DAQInterface application for the 35ton experiment. Since 35ton, DAQInterface has been modified, and is now designed for general use across all experiments. Getting it installed and running takes only a couple of minutes; see https://cdcvs.fnal.gov/redmine/projects/artdaq-utilities/wiki/Artdaq-daqinterface for how to do this. Note that the linked instructions assume that you're working with the artdaq-demo DAQ software package rather than protoDUNE's lbne-artdaq DAQ software package; consequently the following modifications to the instructions on the new DAQInterface wiki apply
* After checking out artdaq-utilities-daqinterface, cd into it and run "git checkout protodune"; this will reduce the number of changes you'll want need to perform make to tailor the following edits above and beyond those described on the main DAQInterface wiki:
** In .settings, set "daq_setup_script" package to <code>setupLBNEARTDAQ</code> and "package_hashes_to_save" your environment (e.g., it replaces references to <code>[ artdaq-demo with references to lbne-artdaq, lbne-raw-data, artdaq ]</code> etc.)
** * Make sure bin/rootfile_event_count.sh uses you've already got the correct path to 35ton configuration repo checked out - i.e., that you've run "git clone http://cdcvs.fnal.gov/projects/lbne-daq-config" in the setup script inside the root macro it creates
** In rc/control/daqinterface.py, change
from rc.control.config_functions_local import get_config_info_base
from rc.control.config_functions_local import put_config_info_base
directory where you wish to install lbne-daq-config
from rc.control.config_functions_database import get_config_info_base
from rc.control.config_functions_database import put_config_info_base
and switch * Modify ./rc/control/config_functions_local.py so that the token <code>bookkeeping_for_fhicl_documents_artdaq_v2_base</code> in "config_dirname" variable at the two locations where it appears top of the "get_config_info_base" function refers to <code>bookkeeping_for_fhicl_documents_artdaq_v1_base</code>
** If you plan to use bin/just_do_it.sh, set the full path of the 35ton configuration name it uses properly - i.e., replace repo. The configuration you choose is defined by the "demo" token in the line <code>config="demo"</code> subdirectory with the same name as the configuration of the checked-out configuration you want repo; this is different than the standard instructions, where rather than lbne-daq-config, a directory local to use. artdaq-utilities-daqinterface called "simple_test_config" is used.
** If you plan on performing any runs * Unlike in the standard instructions, the configuration you'll be using FHiCL from the old lbne-daq-config repo is called "demo_safemode" rather than "demo" ("demo" was already taken during 35ton). This is already accounted for in the database, (A) make sure you've cloned lbne-daq-config somewhere, (B) revert ./bin/just_do_it.sh script; however if you send a manual config transition you'll want to take this into account (i.e., you'll want to send "./bin/send_transition.sh config demo_safemode")
Besides this, following the get_config_info_base instructions on the DAQInterface wiki will get you up and put_config_info_base edits described above, (C) make sure you've replaced the "simple_test_config" path running with lbne-artdaq's ToySimulator- just keep in mind that where the config_dirname variable in ./rc/control/config_functions_local.py , and (D) adjust the just_do_it.sh configuration name.
documentation refers to artdaq-demo, you'll be working with lbne-artdaq.