//tdc->SetRefChannel(36, 35, 0xffff, 10000, -500., 500., true);
tdc->SetRefChannel(35, 33, 0xffff, 10000, -10., 400., true);
- tdc->SetRefChannel(36, 35, 0xffff, 10000, -10., 400., true);
+ tdc->SetRefChannel(36, 33, 0xffff, 10000, -10., 400., true);
// IMPORTANT: for both channels references should be already specified
tdc->SetDoubleRefChannel(36, 35, 1000, -10., 500., 1000, -10., 200.);
}
tdc->CreateHistograms( channels );
tdc->SetRefChannel(1, 3, 0xffff, 10000, -50., 50., true);
tdc->SetRefChannel(2, 4, 0xffff, 10000, -50., 50., true);
-
+
+ tdc->SetDoubleRefChannel(1, 2, 1000, -100., 100., 1000, -100., 100.);
}
##### TRBNET #####
# set the TRBNet addresses of the Endpoints
-trbcmd s 0xb000000390381d28 0 0x0200
-trbcmd s 0xa300000390381328 1 0x0201
-trbcmd s 0x4800000390381628 2 0x0202
-trbcmd s 0x1700000390382028 3 0x0203
-trbcmd s 0xdc00000390380c28 5 0x8000
+#trbcmd s 0xb000000390381d28 0 0x0200
+#trbcmd s 0xa300000390381328 1 0x0201
+#trbcmd s 0x4800000390381628 2 0x0202
+#trbcmd s 0x1700000390382028 3 0x0203
+#trbcmd s 0xdc00000390380c28 5 0x8000
+
+~/trbsoft/daqtools/merge_serial_address.pl ~/trbsoft/daqtools/base/serials_trb3.db ~/trbsoft/daqtools/base/addresses_trb3.db > /dev/null
##### Ethernet and UDP #######
trbcmd w 0x8000 0x8300 0x8000 # SubeventId
# destination port and source IP and so on
-trbcmd w 0x8000 0x8102 0xc0a80001 # destination IP-address: 192.168.0.1
-trbcmd w 0x8000 0x8103 0xc350 # destination port
+trbcmd w 0x8000 0x8102 0xc0a80002 # destination IP-address: 192.168.0.2
+trbcmd w 0x8000 0x8103 0xc351 # destination port
trbcmd w 0x8000 0x8104 0xdead8001 # source MAC-address
trbcmd w 0x8000 0x8105 0x0230 # source MAC: upper bytes
trbcmd w 0x8000 0x8106 0xc0a80072 # source IP
##### TDC #######
# 0xfe48 is the broadcast address of TDC-endpoints in the system
trbcmd w 0xfe48 0xc800 0x00000001 ## logic analyser control register
-trbcmd w 0xfe48 0xc801 0x020f0205 ## trigger window enable & trigger window width
+trbcmd w 0xfe48 0xc801 0x81000100 ## trigger window enable & trigger window width
trbcmd w 0xfe48 0xc802 0x00000000 ## channel 01-31 enable
trbcmd w 0xfe48 0xc803 0x00000000 ## channel 32-63 enable
-trbcmd w 0xfe48 0xc804 0x00000008 ## enable number of words
+trbcmd w 0xfe48 0xc804 0x00000080 ## enable number of words
-trbcmd w 0x0200 0xc802 0x0000000f ## channel 01-4 enable
+trbcmd w 0x8a00 0xc802 0x00000000 ## channel 01-4 enable
+trbcmd w 0x8a00 0xc803 0xffffffff ## channel 32-63 enable
-#trbcmd w 0x0200 0xc803 0xffffffff ## channel 32-63 enable
+trbcmd w 0x8a03 0xc802 0x0000003f ## channel 01-4 enable
+trbcmd w 0x8a03 0xc803 0x00000000 ## channel 32-63 enable
trbcmd w 0x8000 0xa140 0xffff #set CTS pulser to 100Hz
-trbcmd setbit 0x8000 0xa101 0x2 #enable pulser channel 0
+trbcmd setbit 0x8000 0xa101 0x80 #enable trigger3
##### to disable/enable specific peripheral FPGAs ####
# trbcmd w 0x8000 0xc0 0xf1
# invert inputs, as input pulse is negative
-~/trbsoft/daqtools/tools/padiwa.pl 0x200 1 invert 0xaaaa
+~/trbsoft/daqtools/tools/padiwa.pl 0x8a00 0 invert 0xaaaa
+~/trbsoft/daqtools/tools/padiwa.pl 0x8a00 1 invert 0xaaaa