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

From Hall A Wiki
Jump to: navigation, search
(Useful stand-alone programs)
Line 77: Line 77:
:* Mount <code>atedf3:/data/disk2/SBS</code> to <code>/mnt/SBS</code>
:* Mount <code>atedf3:/data/disk2/SBS</code> to <code>/mnt/SBS</code>
::- Uses autofs.  <code>/etc/auto.SBS</code> should be included in a line in <code>/etc/auto.master</code>
::- Uses autofs.  <code>/etc/auto.SBS</code> should be included in a line in <code>/etc/auto.master</code>
:'''Restart procedure if not mounted after reboot'''
::Option 1: (preferred)
:::- logout of coda
:::- login as root
::::<code>cp /etc/auto.master_SBS /etc/auto.master</code>
::::<code>service puppet stop</code>
::::<code>service autofs restart</code>
:::- login normally as coda
::Option 2:
:::- logout of coda
:::- login as root
::::<code>mount atedf3:/data/disk2/SBS /mnt/SBS</code>
:::- login normally as coda
:* Softlinks in <code>/home/coda/SBS-GEM-Cleanroom</code>
::* <code>coda/</code> CODA (3.10)
::* <code>coda/</code> CODA (3.10)
::* <code>linuxvme</code> (in CODA 3.10 directory)
::* <code>data</code> (filename format: gem_cleanroom_<run number>.evio.<split number>
==== intelbbgem ====
==== intelbbgem ====
Line 112: Line 93:
::* Slots 2-8, 10-16: MPDs
::* Slots 2-8, 10-16: MPDs
::* Slot 21: TI
::* Slot 21: TI
::* Softlinks in <code>/home/daq/SBS-GEM-Cleanroom</code>
== Updated/Cloned New repos in coda/3.10/linuxvme ==
github links ([https://github.com/orgs/JeffersonLab/teams/coda-user team:coda-user]):
* [https://github.com/JeffersonLab/jvme jvme]
* [https://github.com/JeffersonLab/ti ti]
* [https://github.com/JeffersonLab/ssp ssp]
* [https://github.com/JeffersonLab/mpd mpd]
Added /site remote with (e.g. jvme, devel branch)
  cd jvme
  git remote add site /site/coda/contrib/devel/jvme
  git pull site devel
== CODA environment setup script ==
== CODA environment setup script ==
Line 135: Line 102:
== Stuff to finish ==
== Stuff to finish ==
=== Replace hallavme12pc ===
===Setup CODA3 environment for MPD crate ===
* Install OS
* Use same mount scripts used on hallavme12pc
* Use local storage for data.
===Add SSP crate===  
* Figure out it's hostname
* Get it to boot just like the other ROCs
* Check TI
* Check SSP
* Check MPD (for checking/debugging APVs)
* Tell Ben we're ready to start connecting fiber from MPD to SSP
===Log CODA runs to [https://logbooks.jlab.org/book/superbigbite logbooks/superbigbite]===
===Log CODA runs to [https://logbooks.jlab.org/book/superbigbite logbooks/superbigbite]===
* check out code used by Hall A's CODA 2.x
* from Alex:
:- <code>epicsRunstart</code>
:- <code>epicsRunEnd</code>
:- <code>runstart.tcl</code>
:- <code>runend.tcl</code>
===Add scripts and GEM-cleanroom specific configuration files to a remote git repo===
:- <code>.bashrc</code>
:- <code>setupCODA</code>
:- <code>~/bin/*</code>

Revision as of 16:33, 3 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


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


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


  • kills all CODA components

Useful stand-alone programs


$CODA_BIN/remex <remexHost> <function call>

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


$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


$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)


$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


$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


  • 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


  • 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)


  • XVR16 VME Controller
  • 'sbs-onl' login
  • Slots ? : SSP
  • Slot 21: TI
  • LINUXVME (mpd,ssp): ~/linuxvme/
  • readout lists : ~/rol/


  • 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