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

(old version 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
sleeptime defines time (in micro sec) how long the plastic branch should wait after initialization before starting measurement to be synchronized with the BaF2 branch 0
bma_readout defines if TDC is readout in block transfer mode 0: disabled
1: enabled
1
bma_size defines the block size (in words) for bma mode 1024
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
v556_cntr ADC control register (see manual) 0x1
v1495_reload defines if the V1495 user FPGA firmware should reloaded before initialization 0: disabled
1: enabled
0
v1495_maj BaF2 majority level 1...63 1
v1495_trig_wdth trigger width in ns (should be multiples of 25 ns) 25...1638400 3000
v1495_pl_logic defines the logic function to be applied to both inputs of one plastic detector 0: AND
1: OR
0
v1495_baf_logic defines the logic function to be applied to both inputs of one BaF2 detector 0: AND
1: OR
0
v1495_trig_wdth output width of trigger signal (in ns) 1...65535 3000
v1495_trig_scal downscale factor for readout Trigger 1...65535 31
v1495_a_mask_l Port A masking, low bits: Plastic trigger input all plastics: 0x0fff
no plastics: 0x0000
0x0fff
v1495_a_mask_h Port A masking, high bits: Plastic trigger input no FC: 0x0000
FC: 0x4000
0x4000
v1495_b_mask_l Port B masking, low bits: Busy signals only plastics: 0x7700
only BaF2: 0x70ff
only FC: 0x7800
0x7fff
v1495_b_mask_h Port B masking, high bits: free 0x0000
v1495_d_mask_l Port D masking, low bits: BaF2 trigger input no BaF2: 0x0000
only BaF2: 0xffff
0x0000
v1495_d_mask_h Port D masking, high bits: BaF2 trigger input no BaF2: 0x0000
only BaF2: 0xffff
0x0000
v1495_e_mask_l Port E masking, low bits: Scaler outputs 0xffff
v1495_e_mask_h Port E masking, high bits: Scaler outputs 0xffff
v1495_f_mask_l Port F masking, low bits: trigger output only plastic: 0xec33
only BaF2: 0xecc5
only FC: 0xec39
0xecff
v1495_f_mask_h Port F masking, high bits: monitor pins 0xffff
v1495_scal_pl_## downscale factor for plastic detectors; ## = {00...07} 0...65535
0 = off
1
v1495_scal_baf_## downscale factor for BaF2 detectors; ## = {00...15} 0...65535
0 = off
1
v1495_baf_or_scal downscale factor for BaF2 OR/Majority 1...65535 1
v1495_pl_or_scal downscale factor for plastic OR 1...65535 1
v1495_coin_win length of the coincidence window for majority determination in ns (should be multiples of 25 ns) 25...1638375 3000
v1495_pl_or_win length of the coincidence window for OR determination in ns (should be multiples of 25 ns) 25...1638375 3000
v1495_glob_or_win length of the coincidence window for global OR determination in ns (should be multiples of 25 ns) 25...1638375 3000
v1495_delay_# gate output delay; # = {1...3} (should be multiples of 10 ns) 10...655350 1 (Pl Taps): 350
2 (BaF Taps): 170
3 (ADC): 1000
v1495_gate_# gate output width; # = {1...3} (should be multiples of 10 ns) 10...655350 1 (Pl Taps): 350
2 (BaF Taps): 170
3 (ADC): 1000
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 6500
v1190a_winoff TDC match window offset before trigger in ns -1000...51200 5000
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 0x220
v1190a_headtrail define if TDC header and trailer are enabled 0x3000: enabled
0x3100 disabled
0x3100
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
7446
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 cabeling scheme

setup_vme_1.ini:

Variable

Meaning

Value Range

Recom-
mended

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
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
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
sleeptime defines time (in micro sec) how long the BaF2 branch should wait after initialization before starting measurement to be synchronized with the plastic branch 13000000
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
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
movetarget defines if the target is moved by software 0: target wil not be changed
1: software will change target
1
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
moveabsorber defines if the absorber is moved by software 0: absorber wil not be changed
1: software will change absorber
0
changeabsorberauto defines if the absorber is changed automatically after the time interval defines by "abschangetime" 0: disabled
1: enabled
0
setabsorber defines absorber position if "changeabsorberauto" is set to 0 1...5 1
abschangetime defines time interval (in sec) when absorber will be changed 1 900
sis3820_LNEtime time between each scaler readout in seconds 1...420 15
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 cabeling scheme