From 4a4138c199f98a8651e1f8206e8aeef35b5f1e13 Mon Sep 17 00:00:00 2001 From: Hades DAQ Date: Mon, 17 Jul 2017 14:58:20 +0200 Subject: [PATCH] misc, mt --- tools/dirich_scan_backplane.pl | 5 ++--- tools/switch_power_dirich.pl | 2 +- users/frankfurt_test/dirich_cycle.pl | 2 +- users/gsi_ee_trb84/TdcEventBuilder.xml | 6 +++--- users/gsi_ee_trb84/startup.sh | 4 ++-- users/gsi_ee_trb84/trbreset_loop.pl | 2 +- web/htdocs/tools/pwr/pwr.conf | 6 +++--- 7 files changed, 13 insertions(+), 14 deletions(-) diff --git a/tools/dirich_scan_backplane.pl b/tools/dirich_scan_backplane.pl index 16b680f..aef8c03 100755 --- a/tools/dirich_scan_backplane.pl +++ b/tools/dirich_scan_backplane.pl @@ -19,10 +19,9 @@ foreach my $cur_position (1..12) { #print $c . "\n"; qx($c); sleep 4; - $c = "~/trbsoft/daqtools/merge_serial_address.pl $ENV{DAQ_TOOLS_PATH}/base/serials_dirich.db $ENV{USER_DIR}/db/addresses_dirich.db"; + #qx($c); - qx($c); - $c = "trbcmd reset; sleep 1; trbcmd i 0xffff | grep ^0x12"; + $c = "trbcmd reset; sleep 1; ~/trbsoft/daqtools/merge_serial_address.pl $ENV{DAQ_TOOLS_PATH}/base/serials_dirich.db $ENV{USER_DIR}/db/addresses_dirich.db; sleep 1; trbcmd i 0xffff | grep ^0x12"; my $r = qx($c); print "position: $cur_position: $r\n"; diff --git a/tools/switch_power_dirich.pl b/tools/switch_power_dirich.pl index 71f9ce8..1b650e3 100755 --- a/tools/switch_power_dirich.pl +++ b/tools/switch_power_dirich.pl @@ -83,5 +83,5 @@ exit; sub usage { - print "switch_power_dirich.pl \n"; + print "switch_power_dirich.pl \n"; } diff --git a/users/frankfurt_test/dirich_cycle.pl b/users/frankfurt_test/dirich_cycle.pl index dde1421..ed26f6d 100755 --- a/users/frankfurt_test/dirich_cycle.pl +++ b/users/frankfurt_test/dirich_cycle.pl @@ -29,7 +29,7 @@ foreach my $combs (keys %$act_ports) { next if $mask == 0; trb_register_setbit($combs,0xd580,$mask); usleep(10000); - trb_register_clearbit($combs,0xd580,$mask); + trb_register_clearbit($combs,0xd580,$mask); } usleep(800000); count(); diff --git a/users/gsi_ee_trb84/TdcEventBuilder.xml b/users/gsi_ee_trb84/TdcEventBuilder.xml index d80f118..9bb7a8a 100644 --- a/users/gsi_ee_trb84/TdcEventBuilder.xml +++ b/users/gsi_ee_trb84/TdcEventBuilder.xml @@ -69,7 +69,7 @@ When starting analysis from the go4 gui, one should specify stream server with p - + @@ -96,7 +96,7 @@ When starting analysis from the go4 gui, one should specify stream server with p - + @@ -112,7 +112,7 @@ When starting analysis from the go4 gui, one should specify stream server with p - + diff --git a/users/gsi_ee_trb84/startup.sh b/users/gsi_ee_trb84/startup.sh index 9f3a281..d74725b 100755 --- a/users/gsi_ee_trb84/startup.sh +++ b/users/gsi_ee_trb84/startup.sh @@ -87,12 +87,12 @@ trbcmd w 0xfffe 0xc5 0x50ff echo "pulser" # pulser #0 to 10 kHz -trbcmd w 0xc001 0xa154 0x0000270f +trbcmd w 0xc001 0xa156 0x0000270f #trbcmd w 0xc001 0xa150 0x0022270f echo "trigger type" # set trigger type to 0x1 -trbcmd setbit 0xc001 0xa159 0x10 +trbcmd setbit 0xc001 0xa15e 0x10 #trbcmd clearbit 0x1130 0xc801 0x80000000 # disable window diff --git a/users/gsi_ee_trb84/trbreset_loop.pl b/users/gsi_ee_trb84/trbreset_loop.pl index 7ae7359..0273674 100755 --- a/users/gsi_ee_trb84/trbreset_loop.pl +++ b/users/gsi_ee_trb84/trbreset_loop.pl @@ -4,7 +4,7 @@ use strict; use warnings; ### Change THIS! -my $required_endpoints = 20; +my $required_endpoints = 16; diff --git a/web/htdocs/tools/pwr/pwr.conf b/web/htdocs/tools/pwr/pwr.conf index 1255652..0e016ef 100644 --- a/web/htdocs/tools/pwr/pwr.conf +++ b/web/htdocs/tools/pwr/pwr.conf @@ -3,6 +3,6 @@ //PWRSPLY:/dev/ttyUSB0:9600:PST3202:PST:3 //PWRSPLY:/dev/ttyUSB0:115200:HMP4030:HMP:3 -PWRSPLY:/dev/FTDI_FT232R_USB_UART_AH02HFZW:2400:PSP2010:PSP:1 -PWRSPLY:/dev/FTDI_FT232R_USB_UART_A702HE33:2400:PSP405:PSP:1 - +//PWRSPLY:/dev/FTDI_FT232R_USB_UART_AH02HFZW:2400:PSP2010:PSP:1 +//PWRSPLY:/dev/FTDI_FT232R_USB_UART_A702HE33:2400:PSP405:PSP:1 +PWRSPLY:/dev/HAMEG_HAMEG_HO720_024025396:0:DiRich:HMP:4 -- 2.43.0