Difference between revisions of "SBS DAQ: GEM TEDF BigBite setup"
From Hall A Wiki
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== CODA scripts == | == CODA scripts == | ||
− | + | :- [https://github.com/JeffersonLab/coda_scripts github page] | |
− | <code> | + | :- Scripts locations: |
+ | * daq@tedbbdaq | ||
+ | :- <code>~/gem_scripts/setupCODA.bash</code> | ||
+ | :- <code>~/gem_scripts/coda_scripts/</code> | ||
+ | * sbs-onl@intelbbgem: | ||
+ | :- <code>~/coda_scripts/</code> | ||
=== Frontend scripts to use on tedbbdaq === | === Frontend scripts to use on tedbbdaq === | ||
Line 11: | Line 16: | ||
* kills all CODA components | * kills all CODA components | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Useful stand-alone programs == | == Useful stand-alone programs == | ||
=== <code>remex</code> === | === <code>remex</code> === | ||
− | <code>$ | + | <code>$CODA_BIN/remex <remexHost> <function call></code> |
* Execute a function call on the specified remote Host | * Execute a function call on the specified remote Host | ||
:- Run without arguments for usage | :- Run without arguments for usage | ||
=== <code>tiLibTest</code> === | === <code>tiLibTest</code> === | ||
− | <code> | + | <code>$CODA_VME/ti/test/tiLibTest <TI slot number></code> |
* Test triggering capabilities of the local TI. | * Test triggering capabilities of the local TI. | ||
:- Puts the local TI in master mode (with no slaves). | :- Puts the local TI in master mode (with no slaves). | ||
Line 39: | Line 31: | ||
=== <code>i2c_test</code>=== | === <code>i2c_test</code>=== | ||
− | <code> | + | <code>$LINUXVME/mpd/libsrc/test/i2c_test <mpd slot number></code> |
* Test the initialization and configuration of the APVs in the specified MPD. | * Test the initialization and configuration of the APVs in the specified MPD. | ||
:- Does the same initialization that is done in <code>mpd_list.c:rocDownload()</code> | :- Does the same initialization that is done in <code>mpd_list.c:rocDownload()</code> | ||
Line 45: | Line 37: | ||
=== <code>vme_display</code> === | === <code>vme_display</code> === | ||
− | <code> | + | <code>$CODA_VME_BIN/vme_display <VME Address> <read size in bytes></code> |
* Display the read value of specified size from the specified VME address. | * Display the read value of specified size from the specified VME address. | ||
:- Run without arguments for usage | :- Run without arguments for usage | ||
=== <code>vme_modmem</code> === | === <code>vme_modmem</code> === | ||
− | <code> | + | <code>$CODA_VME_BIN/vme_modmem <VME Address> <read/write size in bytes></code> |
* Modify the value of specified size of the specified VME address. | * Modify the value of specified size of the specified VME address. | ||
:- Run without arguments for usage | :- Run without arguments for usage | ||
− | == | + | == MPD/SSP/APV Config files == |
− | + | * Config files for configuration of APVs and MPD / SSP can be found in | |
− | + | :- <code>sbs-onl@intelbbgem:~/bbgem-cfg/</code> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | * | + | :* The '''SSP''' readout list (<code>mpd5_ssp_list.so</code>) uses |
+ | ::- <code>sbs-onl@intelbbgem:~/bbgem-cfg/ssp_config.txt</code> | ||
+ | ::- <code>sbs-onl@intelbbgem:~/bbgem-cfg/ssp_apv_default.txt</code> | ||
+ | |||
+ | |||
+ | :* The '''MPD''' readout list (<code>mpd_list.so, mpd_slave_list.so</code>) uses | ||
+ | ::- <code>sbs-onl@intelbbgem:~/bbgem-cfg/mpd_config.txt</code> | ||
+ | ::- <code>sbs-onl@intelbbgem:~/bbgem-cfg/mpd_apv_default.txt</code> | ||
+ | |||
+ | |||
+ | :* '''Both''' use common files to configure the MPDs/APVs given the MPD's slot number. For example, slot 5 MPD: | ||
+ | ::- <code>sbs-onl@intelbbgem:~/bbgem-cfg/bbgem_crate_1/MPD_vmeSlot_5.cfg</code> | ||
== Machines in use == | == Machines in use == | ||
Line 82: | 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> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
::* <code>coda/</code> CODA (3.10) | ::* <code>coda/</code> CODA (3.10) | ||
− | |||
− | |||
− | |||
− | |||
==== intelbbgem ==== | ==== intelbbgem ==== | ||
* XVR16 VME Controller | * XVR16 VME Controller | ||
− | ::* ' | + | ::* 'sbs-onl' login |
::* Slots ? : SSP | ::* Slots ? : SSP | ||
::* Slot 21: TI | ::* Slot 21: TI | ||
− | ::* | + | ::* LINUXVME (mpd,ssp): <code>~/linuxvme/</code> |
+ | ::* readout lists : <code>~/rol/</code> | ||
==== hatsv48 ==== | ==== hatsv48 ==== | ||
Line 116: | Line 93: | ||
::* Slots 2-8, 10-16: MPDs | ::* Slots 2-8, 10-16: MPDs | ||
::* Slot 21: TI | ::* Slot 21: TI | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== CODA environment setup script == | == CODA environment setup script == | ||
Line 139: | Line 102: | ||
== Stuff to finish == | == Stuff to finish == | ||
− | === | + | ===Setup CODA3 environment for MPD crate === |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
===Log CODA runs to [https://logbooks.jlab.org/book/superbigbite logbooks/superbigbite]=== | ===Log CODA runs to [https://logbooks.jlab.org/book/superbigbite logbooks/superbigbite]=== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 15:33, 3 December 2020
Contents
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 SSP readout list (
- 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
- The MPD readout list (
- 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/
- CODA and hardware drivers in
- 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
- Mount
-
coda/
CODA (3.10)
-
intelbbgem
- XVR16 VME Controller
- 'sbs-onl' login
- 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