=ALL ABOUT CRIB=
src/j1.md
1 J1
2 ==
3 
4 Initialization of CAMAC/VME
5 ------------------------
6 
7 The ADC/TDC modules in the CAMAC or VME crate
8 need to be initialized when the power is turned on.
9 
10 VME initialization:
11 1. login babar (just type "babar" from dat2 machine).
12 2. You should be at ~/exp/????, ???? is the directory of the current experiment.
13 Do "cd vsta" there.
14 3.
15  - The VME modules can be initialized by "vmestat all.vsta",
16 if you prepared "all.vsta".
17  - The vsta file could be made by a perl script, makevsta.pl.
18 In that case, run "vmeinit.sh". (This is the usual case.)
19 4. On the execution of vmestat, the LEDs on the modules should flash.
20 
21 - "makevsta.pl" overwrites "all_auto.vsta".
22 - You can change the settings by editing the first part of "makevsta.pl".
23  + \@modules...specify ADC/TDC, GEO number, and adress.
24  + \@disable...You can specify unnecessary channels for each module.
25  + $fsr...TDC's Free spectral range parameter. (See Baba-san's web page.)
26  + $thres...Common ADC threshold (All channels become the same.)
27 -vmeinit.sh is a shell script which call "makevsta.pl" and "vmestat all.vsta".
28 
29 CAMAC initialization:
30 1. Login to dat. (It is not dat2 or babar!). Username is "rips", and the password is "o********".
31 2. Do "cd 3351_init".
32 3. Execute "init.sh".
33 4. Make sure the station no. etc. are correctly configured.
34 5. If if fails (it often fails), try the following:
35  rerun the script, send "clear" by the switch at the CAMAC crate, turn off and on the crate,
36 
37 Files:
38  - generate_ccsta.pl... Perl script to generate ccsta file
39  - gc_3351.ccsta, gc_3371.ccsta... ccsta files generated.
40  - check.sh...script to check the configurations.
41  - init.sh... shell-script to execute "ccstat" and "check.sh".
42