How to Run the Muon DAQ

in Standalone Mode

Shinwoo Nam, Robert Harr
Wayne State University
26 Junly1998

Contents

 1. Introduction
 2. Starting the DAQ in standalone mode.
 3. Viewing hit statistics
 4. Starting the FEE control panel
 5. Source Code
 References

1. Introduction

For the purpose of testing and running diagnostics on the Muon system we can run the DAQ system in standalone mode.  The details of standalone operation are documented here.

2. Starting the DAQ in standalone mode

The following list of steps should allow you to launch the DAQ in standalone mode.
  1. Make sure all the relevant systems are powered and initialized:
    1. The front-end electronics.
    2. The front-end drivers.
    3. The VME crate with SHARC readout.
    4. A pulser for the FCS emulator (if the emulator is being used).
  2. Login to hb-vme06 (or appropriate VME CPU).  If you don't know the username and password, then you probably shouldn't be doing this alone.  Consult an expert.
  3. Check for and kill any pre-existing sbc process.  Use:
  4. ps -ax
    to check for any pre-existing processes.  If any are there, read off the process id (pid) then use:
    kill [pid]
    to kill the processs.
  5. Kill any pre-existing copy_part process.  Use the ps command as above, read off the pid and use:
  6. kill [pid]
  7. Check that the sbc and copy_part processes are killed by using the ps command as above.
  8. Start sbc with the command:
  9. sbc -standalone -G[memname]&
    where [memname] is a name you give to the shared memory that will be created for this process.  Any name will do, but remember it, because it will be needed below.
  10. Wait until the initialization finishes and a message is displayed, like:
  11. sbc@hb-vme06 running
    (if you are using hb-vme06, the appropriate VME-CPU number should show up.)
  12. To see raw event data dumped to the screen type ([memname] is the same one used when starting sbc):
  13. dumpev -G[memname]
  14. Connect a lemo cable from the pulser output to the external trigger input of the FCS emulator board.  The external trigger input is the lower of the two lemo connectors on the FCS emulator board.
  15. Dumpev will display formatted raw events on the screen.  Use CTRL-c to stop or CTRL-S/Q to purse/resume.
  16. Congratulations, the DAQ is now running in standalone mode if you see the correct FED id which is set by the DIP switches (1 and 2) of the FED mother board.
  17. if the FED id is not right, please go back to step 3 in this section.
 [top]

3. Viewing hit statistics

To view the hit statistics, we presently use a crude program that accumulates statistics from the DAQ.  The statistics are stored in two ways, over a short time scale, by default set to one second, and over a long time scale that is in effect infinite.  To start the process and view event statistics, use the following procedure.
  1. Start the DAQ in standalone mode as described  above.
  2. Start the copy_part routine by typing:
  3. copy_part -G[memname]&
    where [memname] is the same name as used when starting sbc.
  4. Copy_part will accumulate hit statistics for intervals of one second, and, well, let's just say a very long time.  These statistics are stored in a second shared memory area, i.e. different from [memname] used above.
  5. This shared memory is accessed, and the contents displayed in a nice format by show_shm.  Type
  6. show_shm
    with no options to see a full list of the display content and format options available.
     [top]

4. Starting the FEE control panel

The thresholds for the muon system are not automatically set.  Some user initialization is required.  Control of the thresholds is obtained through a user interface panel.  To bring up this panel:
  1. Login to hb-con07 (or appropriate hbcon machine).  If you don't know the username and password, then you probably shouldn't be doing this alone.  Consult an expert.
  2. Move to the daq98 directory:
  3. cd daq98
  4. Issue the following commands to initiate the control system and the control panel:
  5. sc_test hall1
  6. After a few seconds, the control panel outline should appear on the screen, click to display the panel. You will see some message which tells you that the hall1 serial port server is running, the cofiguration file is read in and some default setup is done.
  7. In this panel, everything is very straightforward.  The mostly used functions are :
    1. open DebugWin : open the windows to monitor the command message between the serial port client and server program.
    2. UpdateConfig     : update the configuration file.
    3. INITIALWORK : set some default commands and ackonwledge all the microcontrollers.
    4. uC Work            :  this button pops up another GUI window to let you to work on several specific funciton for the microcontroller system.
    5. Global, MU1, MU2, MU3, MU4 : these buttons offer the pull-down menus to let you choose the chanbers to set threshold.
    6. write                   : write the threshold vlaue set by the yellow slider to the choosed chambers.
    7. read                     : read the threshold vlaues from the microcontroller HDA for the selected chambers
  8. sc_test is also used for muon standalone in the west hall so far.  The command for that purpose is
  9. sc_test  [muon]
    (muon is the default parameter, you can omit it here.)
 [top]

5. Source code

All the compiled programs we are using in the assemble hall are not for the long term HERA-B software.  If you like to see the source code for these files, please contact the appropriate person.  The sc_test is a TCL/TK script file, you can get it source code at file sc_test_now under the same directory.
 
 



Updated by physjg at Oct. 30, 1998.