Difference between revisions of "SBS DAQ: GEM TEDF BigBite setup"

From Hall A Wiki
Jump to: navigation, search
(tedbbdaq)
(Machines in use)
Line 92: Line 92:
 
==== intelbbgem ====
 
==== intelbbgem ====
 
* XVR16 VME Controller
 
* XVR16 VME Controller
::* 'sbs-onl' login
+
:* User: sbs-onl
::* Slots ? : SSP
+
::* CODA3 environment setup:
::* Slot 21: TI
+
::- <code>~/.bashrc</code>
::* LINUXVME (mpd,ssp): <code>~/linuxvme/</code>
+
 
::* readout lists : <code>~/rol/</code>
+
    # CODA 3 using coda_scripts : SESSION=bbgem 01dec2020
 +
    export SESSION=bbgem
 +
    export EXPID=tedbbdaq
 +
    source ${HOME}/coda_scripts/setupCODA3.bash
 +
 
 +
    # LINUXVME for mpd and ssp
 +
    export LINUXVME=${HOME}/linuxvme
 +
    export LINUXVME_INC=${HOME}/linuxvme/include
 +
    export LINUXVME_LIB=${HOME}/linuxvme/${MACHINE}/lib
 +
    export LINUXVME_BIN=${HOME}/linuxvme/${MACHINE}/bin
 +
    export LD_LIBRARY_PATH=.:${LINUXVME_LIB}:${LD_LIBRARY_PATH}
 +
    export PATH=.:${LINUXVME_BIN}:${PATH}
 +
 
 +
::- <code>~/coda_scripts/setupCODA.bash</code>
 +
 
 +
:* Slots ? : SSP
 +
:* Slot 21: TI
 +
:* LINUXVME (mpd,ssp): <code>~/linuxvme/</code>
 +
:* readout lists : <code>~/rol/</code>
  
 
==== hatsv48 ====
 
==== hatsv48 ====

Revision as of 03:32, 4 December 2020

CODA scripts

- github page
- Scripts locations:
  • daq@tedbbdaq
- ~/gem_scripts/setupCODA.bash
- ~/gem_scripts/coda_scripts/
  • sbs-onl@intelbbgem:
- ~/coda_scripts/

Frontend scripts to use on tedbbdaq

startCoda

  • executes each CODA component (platform, rcgui, PEB, all ROCs) in a separate xterm

restartStuff

  • kills and restarts the PEB and ROCs. The xterms are not killed with this script.

kcoda

  • kills all CODA components


Useful stand-alone programs

remex

$CODA_BIN/remex <remexHost> <function call>

  • Execute a function call on the specified remote Host
- Run without arguments for usage

tiLibTest

$CODA_VME/ti/test/tiLibTest <TI slot number>

  • Test triggering capabilities of the local TI.
- Puts the local TI in master mode (with no slaves).
- Accepts triggers either from Front Panel TSinputs or Internal Random Pulser

i2c_test

$LINUXVME/mpd/libsrc/test/i2c_test <mpd slot number>

  • Test the initialization and configuration of the APVs in the specified MPD.
- Does the same initialization that is done in mpd_list.c:rocDownload()
- Also attempts the readback of the APV registers with mpdApvStatus(0xffff)

vme_display

$CODA_VME_BIN/vme_display <VME Address> <read size in bytes>

  • Display the read value of specified size from the specified VME address.
- Run without arguments for usage

vme_modmem

$CODA_VME_BIN/vme_modmem <VME Address> <read/write size in bytes>

  • Modify the value of specified size of the specified VME address.
- Run without arguments for usage

MPD/SSP/APV Config files

  • Config files for configuration of APVs and MPD / SSP can be found in
- sbs-onl@intelbbgem:~/bbgem-cfg/


  • The SSP readout list (mpd5_ssp_list.so) uses
- sbs-onl@intelbbgem:~/bbgem-cfg/ssp_config.txt
- sbs-onl@intelbbgem:~/bbgem-cfg/ssp_apv_default.txt


  • The MPD readout list (mpd_list.so, mpd_slave_list.so) uses
- sbs-onl@intelbbgem:~/bbgem-cfg/mpd_config.txt
- sbs-onl@intelbbgem:~/bbgem-cfg/mpd_apv_default.txt


  • Both use common files to configure the MPDs/APVs given the MPD's slot number. For example, slot 5 MPD:
- sbs-onl@intelbbgem:~/bbgem-cfg/bbgem_crate_1/MPD_vmeSlot_5.cfg

Machines in use

atedf3

  • NFS server, tftp server for VME Controllers
  • CODA and hardware drivers in /data/disk2/SBS/
  • Read-only permissions for all machines in 36 subnet
  • Read-Write permissions for hallavme12pc,sbsvme25

tedbbdaq

  • DAQ Computer (RunControl, Event Building)
  • Mount atedf3:/data/disk2/SBS to /mnt/SBS
- Uses autofs. /etc/auto.SBS should be included in a line in /etc/auto.master
  • coda/ CODA (3.10)
  • User: daq
  • CODA3 environment setup:
- ~/.bashrc
    # CODA 3 setup : SESSION=bbgem 01dec2020
    export CODA=/mnt/SBS/coda/3.10_arm
    export SESSION=bbgem
    export EXPID=tedbbdaq
    source ${HOME}/gem_scripts/setupCODA3.bash
- ~/gem_scripts/setupCODA.bash

intelbbgem

  • XVR16 VME Controller
  • User: sbs-onl
  • CODA3 environment setup:
- ~/.bashrc
    # CODA 3 using coda_scripts : SESSION=bbgem 01dec2020
    export SESSION=bbgem
    export EXPID=tedbbdaq
    source ${HOME}/coda_scripts/setupCODA3.bash
    # LINUXVME for mpd and ssp
    export LINUXVME=${HOME}/linuxvme
    export LINUXVME_INC=${HOME}/linuxvme/include
    export LINUXVME_LIB=${HOME}/linuxvme/${MACHINE}/lib
    export LINUXVME_BIN=${HOME}/linuxvme/${MACHINE}/bin
    export LD_LIBRARY_PATH=.:${LINUXVME_LIB}:${LD_LIBRARY_PATH}
    export PATH=.:${LINUXVME_BIN}:${PATH}
- ~/coda_scripts/setupCODA.bash
  • Slots ? : SSP
  • Slot 21: TI
  • LINUXVME (mpd,ssp): ~/linuxvme/
  • readout lists : ~/rol/

hatsv48

  • XVB601 VME Controller
  • 'daq' login
  • Slots 2-8, 10-16: MPDs
  • Slot 21: TI

CODA environment setup script

Using BASH, source the environment setup script:

source ~/SBS-GEM-Cleanroom/env/setupCODA

Stuff to finish

Setup CODA3 environment for MPD crate

Log CODA runs to logbooks/superbigbite