Wibtools » History » Version 23

« Previous - Version 23/30 (diff) - Next » - Current version
Mayank Tripathi, 07/28/2019 11:21 PM


Running DAQInterface

See instruction/documentation/etc. at the artdaq-daqinterface page:

To setup a develop area for sbndaq on your own account, follow these steps:
  1. Login to a machine on the desired DAQ cluster. For example:
    ssh <username>

    and then do:
     setup sbndaq v#_##_## -q e17:prof:s82
  2. Make sure you have the sbndaq repository pulled down in your working area (for setting up a working area, see the Installation Instructions)
  3. Setup the common sbndaq local products area:
     source localProducts_sbndaq_v#_##_##_e17_prof_s82/setup
  4. Setup the latest version of wibtools we are based:
     unsetup wibtools

    and then do:
     setup wibtools v#_##_## -q e17
  5. To check the latest version:
     cd build_slf7.x86_64

    and run:
     mrb i -j8

    You can check the latest version by doing:
     ups active
  6. Go to the sbndaq repository pulled down in your working area by going up one directory:
     cd ..
  7. To run the DAQInterface go to the correct directory:
     cd srcs/sbndaq/dab/DAQInterface
  8. Now you will need to edit the following files.
    a) edit the known_boardreaders_list file
     emacs known_boardreaders_list
    Make sure that the wib101 is included there and put it under localhost.
    b) edit the boot.txt file
     emacs boot.txt
    Put the EventBuilder1, DataLogger1 and Dispatcher1 in localhost and comment out the two more EventBuilders and three more DataLoggers.
    c) edit the MessageFacility.fcl file
     emacs MessageFacility.fcl
    and make sure that host is localhost. In the current git repository it is sbnd-daq33-priv.
    d) edit the wib101.fcl file in the directory configs/standard
     emacs configs/standard/wib101.fcl
    and make sure that the WIB address is sbnd-wib101 and WIB metrics dim IDName is wib101
  9. At this point make sure that you are in the correct directory namely:
  10. Edit the run file
     emacs run
    and set the daqcomponents by adding wib101
    in the code and commenting out the all the other setdaqcomps. This identifies which fickle file it will be using.
  11. At this point it is advisable to open up another terminal and login to the machine on the desired DAQ cluster. For example:
    ssh <username>
    we do this because the build environment is different than the run environment. For future references the old terminal you have been using for steps 1-10 will be called the first window and the new terminal will be called the second window.
  12. In the second window go to the correct directory:
     cd <your_work_directory>/srcs/sbndaq/dab/DAQInterface
  13. In both windows, do:
     source ./
  14. In the second window introduce the DAQInterface:
     DAQInterface &
    You should get a message like
     DAQInterface in partition 3 launched and now in "stopped" state, listening on port 13000
  15. In the first window do:
     source ./run
    On running this command you should get a message in the first window like
    and in the second window you should get a message like
    Sun Jul 28 18:36:24 CDT 2019: BOOT transition underway 
  16. After the process is complete, in the first window you will get a message like
     Killing DAQInterface listening on partition 3
    and it will hang up. We expect it to crash because we have not finished converting the wibtools. You can Control+C it. In the second window if you scroll up a little you will find a message like
    localhost:13100; try checking logfile

You can open up the logfile and check for error messages. Sometimes there will be a lot of informational messages and sometimes the crash will not be obvious. We will stop here for now and will update this wiki page after wibtools have been updated.