Contact

Dr. Roland Beyer

Beam line scientist, radiation protection officer FWK
Nuclear Physics
roland.beyer@hzdr.de
Phone: +49 351 260 3281

Initialization of the VME electronics (up to April 2010)

(latest version)

The initialization of the VME modules is controlled via the files "setup_vme_0.ini" and "setup_vme_1.ini" for the Plastic Scintillator Setup and the BaF2-Array, respectively. Each line of these files has to have the following structure: "variable = value". Each line starting with "// =" is interpreted as a comment line. Values can be set decimal or hexadecimal (0x...).

The following variables are accepted:

setup_vme_0.ini:

Variable

Meaning

Value Range

Recom-
mended

comment defines which comments should be printed out to the mbsprint_vme_0.l log-file 0: no comments
1: all comments
2: scaler values, errors, initialization
2
testrun defines if the actual setup_vme_0.ini will be copied for logging into the directory "mbsrun/nng/log/" 0: setup will be saved
1: setup will not be saved
0
scalerrestart defines if a check should be enabled at each scaler readout (trigger type 2) if the electronics setup is paralyzed, i.e. if the QDC buffers are full although TDC almost full level not reached 0: disabled
1: enabled
1
opcreadout defines if MBS should readout the OPC data from the shared memory; if this value is set to 1, opc2shm should run on rio3 0: disabled
1: enabled
0
bma_readout defines if TDC is readout in block transfer mode 0: disabled
1: enabled
1
daqmode defines if some settings are set automaticaly to measure only plastic or only baf2 data or both (see below) 0: user adjusted
1:only plastic data
2: only baf2 data
0
sendpldata defines if plastic data is send to data stream 0: disabled
1: enabled
1
sendbafdata defines if baf2 data is send to data stream 0: disabled
1: enabled
1
setped defines if the SetPed routine is started to set the TAPS QDC pedestal values automatically to 100  (some other variables are automatically change by setting 1, see below) 0: disabled
1: enabled
0
fastanalysis defines if a fast analysis of the plastics time-of-flight spectra is written to "mbs_ratios.l" 0: disabled
1: enabled
1
sis3820_LNEtime time between each scaler readout in seconds 1...420 15
v556_thrl ADC threshold (if ADC in use)   0x1
v1190a_out_prog TDC POUT output 0: Data Ready
2: Almost Full
2
v1190a_alm_full TDC Almost Full level; it should be set to a value where the QDCs do not store more than 32 events 1... 32735 (70)
v1190a_acqmode TDC acquisition mode 0x0000: trigger matching
0x0100: continuous storage
0x0000
v1190a_winwidth TDC match window width in ns 25...102375 1500
v1190a_winoff TDC match window offset before trigger in ns -1000...51200 800
v1190a_extrasearch TDC extra search margin   0x00
v1190a_reject TDC reject margin   0x01
v1190a_edgedet TDC edge detection mode 0: pair
1: trailing
2: leading
3: leading + trailing
0x02
v1190a_leadres TDC resolution for leading edge   100
v1190a_widthres TDC resolution for width   100
v1190a_ctrl TDC control register cf. manual p. 71 0x120
v1190a_headtrail define if TDC header and trailer are enabled 0x3000: enabled
0x3100 disabled
0x3100
v486_mux Gate Gen. MUX output; defines which output channel is also available on the MUX output 0...7 0
v486_gates Gate Gen. gate length 0...255 250
v486_delays Gate Gen. delay 0...255 0
v486_mode Gate Gen. channel mode (cf. manual p. 13) 0: normal mode
1: common mode
2: coupled mode
2
v874b_mindead all BaF-Modules: defines if the modules are set offline while readout 0: readout offline
1: readout online
1
v874b_emptyprog all BaF-Module: defines if empty events are enabled 0: disabled
1: enabled
1
v874b_bitpat all BaF-Modules: defines if the bit patterns are measured 0: disabled
1: enabled
0
v874b_TACon all BaF-Modules: defines if the TAC values are measured 0: disabled
1: enabled
0
v874b_LGon all BaF-Modules: defines if the LG and LGS values are measured 0: disabled
1: enabled
0
v874b_SGon all BaF-Modules: defines if the SG and SGS values are measured 0: disabled
1: enabled
1
v874b_lowthr all BaF-Modules: underflow and over range suppression 0: disabled
1: enabled
0
v874b_bafthr all BaF-Modules: underflow threshold 0...255 0
v874b_bafsendthr defines an additional software threshold; all BaF ADC Data words with measured values below v874b_bafsendthr will not be written to stream   0
v874b_Vset all BaF-Modules Vset: defines time resolution / range 0: 178 ps/ch (727 ns range)
43: 103 ps/ch (400 ns range)
140: 54 ps/ch (200 ns range)
140
v874b_Voff all BaF-Modules Voff: defines time offset 240: 300 ns
165: 400 ns
131: 500 ns
165
v874b_thrLED all BaF-Modules threshold of the leading edge discriminators 7819: 50 mV
7446: 100 mV
6701: 200 mV
8191
v874b_#_pedXY BaF-Module no. # pedestal value for XY; # = {1...3}, X ={SLG, SGS, LG, SG}, Y= {1, 2, 3, 4}   5376
v874b_#_thrCFDY BaF-Module no. # threshold value of CFDY; # = {1...3}, Y= {1, 2, 3, 4}   see below

setup_vme_1.ini:

Variable

Meaning

Value Range

Recom-
mended

testrun defines if the actual setup_vme_1.ini will be copied for logging into the directory "mbsrun/nng/log/" 0: setup will be saved
1: setup will not be saved
0
comment defines which comments should be printed out to the mbsprint_vme_1.l log-file 0: no comments
1: all comments
2: scaler values, errors, initialization
2
scalerrestart defines if a check should be enabled at each scaler readout (trigger type 2) if the electronics setup is paralyzed, i.e. if the QDC buffers are full although TDC almost full level not reached 0: disabled
1: enabled
1
opcreadout defines if MBS should readout the OPC data from the shared memory; if this value is set to 1, opc2shm should run on rio6 0: disabled
1: enabled
0
daqmode defines if some settings are set automatically to measure only plastic or only baf2 data or both (see below) 0: user adjusted
1:only plastic data
2: only baf2 data
0
sendbafdata defines if baf2 data is send to data stream 0: disabled
1: enabled
1
setped defines if the SetPed routine is started to set the QDC pedestal values automatically to 100 (some other variables are automatically change by setting 1, see below) 0: disabled
1: enabled
0
changetargetauto defines if scattering target is changed automatically to next position at "start acquisition" 0: disabled
1: enabled
1
settarget defines target position if "changetargetauto" is set to 0 1...4 1
sis3820_LNEtime time between each scaler readout in seconds 1...420 15
v1495_reload defines if the V1495 user FPGA firmware should reloaded before initialization 0: disabled
1: enabled
0
v1495_maj majority level 1...63 1
v1495_trig_wdth trigger width in ns (should be multiples of 25 ns) 25...1638400 3000
v1495_coin_win length of the coincidence window for majority determination in ns (should be multiples of 25 ns) 25...1638375 3000
v1495_baf_or_scal downscale factor for BaF2 OR 1...65535 1
v1495_baf_maj_scal downscale factor for BaF2 Majority 1...65535 1
v1495_pl_or_scal downscale factor for Plastic OR 1...65535 1
v1495_trig_scal downscale factor for readout Trigger 1...65535 31
v1495_min_wdth_baf minimum signal width of BaF2 logical signals in ns (should be multiples of 25 ns) 25...1638375 50
v1495_min_wdth_pl minimum signal width of Plastic logical signals in ns (should be multiples of 25 ns) 25...1638375 50
v1495_a_mask_l Port A masking, low bits: Plastic trigger input only plastic: 0x003f
only BaF2: 0x0000
0x003f
v1495_a_mask_h Port A masking, high bits: Plastic trigger input only plastic: 0x0000
only BaF2: 0x0000
0x0000
v1495_b_mask_l Port B masking, low bits: BaF2 busy only plastic: 0x0000
only BaF2: 0x07ff
0x07ff
v1495_b_mask_h Port B masking, high bits: Plastic busy only plastic: 0x010f
only BaF2: 0x0101
0x010f
v1495_d_mask_l Port D masking, low bits: BaF2 trigger input only plastic: 0x0000
only BaF2: 0xffff
0xffff
v1495_d_mask_h Port D masking, high bits: BaF2 trigger input only plastic: 0x0000
only BaF2: 0xffff
0xffff
v1495_e_mask_l Port E masking, low bits: BaF2 trigger input only plastic: 0x0000
only BaF2: 0x03ff
0x03ff
v1495_e_mask_h Port E masking, high bits: BaF2 trigger input only plastic: 0x0000
only BaF2: 0x0000
0x0000
v1495_f_mask_l Port F masking, low bits: trigger output only plastic: 0xfccf
only BaF2: 0xfdf1
0xfdff
v1495_f_mask_h Port F masking, high bits: monitor pins only plastic: 0xffdf
only BaF2: 0xffdf
0xffdf
v486_mux Gate Gen. MUX output; defines which output channel is also available on the MUX output 0...7 0
v486_gates Gate Gen. gate length 0...255 250
v486_delays Gate Gen. delay 0...255 200
v874b_mindead all BaF-Modules: defines if the modules are set offline while readout 0: readout offline
1: readout online
1
v874b_emptyprog all BaF-Module: defines if empty events are enabled 0: disabled
1: enabled
1
v874b_bitpat all BaF-Modules: defines if the bit patterns are measured 0: disabled
1: enabled
0
v874b_TACon all BaF-Modules: defines if the TAC values are measured 0: disabled
1: enabled
0
v874b_lowthr all BaF-Modules: underflow and over range suppression 0: disabled
1: enabled
0
v874b_bafthr all BaF-Modules: underflow threshold 0...255 10
v874b_bafsendthr defines an additional software threshold; all BaF ADC Data words with measured values below v874b_bafsendthr will not be written to stream   0
v874b_Vset all BaF-Modules Vset: defines time resolution / range 0: 178 ps/ch (727 ns range)
43: 103 ps/ch (400 ns range)
140: 54 ps/ch (200 ns range)
140
v874b_Voff all BaF-Modules Voff: defines time offset 240: 300 ns
165: 400 ns
131: 500 ns
165
v874b_thrLED all BaF-Modules threshold of the leading edge discriminators 7819: 50 mV
7446: 100 mV
6701: 200 mV
7446
v874b_#_pedXY BaF-Module no. # pedestal value for XY; # = {1...11}, X ={SLG, SGS, LG, SG}, Y= {1, 2, 3, 4}   5376
v874b_#_thrCFDY BaF-Module no. # threshold value of CFDY; # = {1...11}, Y= {1, 2, 3, 4}   see below

Changes resulting from setting daqmode or setped variable:

The following settings are done when the "daqmode" or "setped" variable is not set to 0. In this case the values for these variables written in setup_vme_*.ini files are ignored. The settings for setped = 1 are superior to the settings of daqmode

  daqmode = 1 (plastic only) daqmode = 2 (BaF2 only) setped = 1
vme_0
sendpldata 1 0 1
sendbafdata 0 1  
v486_delays     200
v874b_LGon     1
v874b_SGon     1
vme_1
sendbafdata 0 1 1
v1495_a_mask_l 0x003f 0x0000 0x8000
v1495_a_mask_h 0x0000 0x0000 0x0000
v1495_b_mask_l 0x0000 0x7fff 0x0000
v1495_b_mask_h 0x0107 0x0101 0x0000
v1495_d_mask_l 0x0000 0xffff 0x0000
v1495_d_mask_h 0x0000 0xffff 0x0000
v1495_e_mask_l 0x0000 0x03ff 0x0000
v1495_e_mask_h 0x0000 0x0000 0x0000
v1495_f_mask_l 0xfccf 0xfdf1 0xffff
v1495_f_mask_h 0xffdf 0xffdf 0xffff

The CFD thresholds should be set as follows:

BaF-Module no.

Serial no.

CFD1

CFD2

CFD3

CFD4

1 230 0x1fab 0x1fc1 0x1fb8 0x1f98
2 182 0x1fad 0x1ff8 0x1fcd 0x1fb1
3 200 0x1fc3 0x1fa3 0x1fbe 0x1fae
4 (CFD ch4 damaged) 210 0x1f9e 0x1fac 0x1fc4 0x1fc1
5 211 0x1fb9 0x1fa1 0x1fb7 0x1fbe
6 212 0x1fc6 0x1fb3 0x1fb2 0x1ff1
7 (CFD ch3 damaged) 232 0x1fb6 0x1fc0 0x1fb8 0x1fc8
8 225 0x1fca 0x1fad 0x1fb6 0x1fb5
9 227 0x1fbb 0x1fab 0x1fb4 0x1faf
10 234 0x1fc0 0x1fd7 0x1fb5 0x1fb3
11 (CFD ch4 damaged) 229 0x1fad 0x1fb0 0x1fbf 0x1fd8
noisy 181 0x1fa4 0x1f73 0x1f85 0x1fbb
noisy 218 0x1fa0 0x1fad 0x1fad 0x1f9d
noisy 228 0x1fc5 0x1fc1 0x1f76 0x1fb1
2 channels damaged 233 0x1fcb 0x1fa5 0x1fc9 0x1fb3
12 235 0x1fd8 0x1fc0 0x1fcd 0x1f98
13 236 0x1fc5 0x1f8b 0x1f9c 0x1fbc
14 238 0x1fb5 0x1fd8 0x1fad 0x1fd6
  239 0x1fac 0x1fc3 0x1f87 0x1fbd
  241 0x1fcd 0x1fba 0x1f73 0x1f8e