#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";
sub usage {
- print "switch_power_dirich.pl <position in backplane> <on|off|toggle>\n";
+ print "switch_power_dirich.pl <dirich_conc_address> <position in backplane> <on|off|toggle>\n";
}
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();
<!-- Thread name="*" publ="true" prof="true"/ -->
<MemoryPool name="Pool">
- <BufferSize value="200000"/>
+ <BufferSize value="2000000"/>
<NumBuffers value="1000"/>
</MemoryPool>
<Module name="Combiner" class="hadaq::CombinerModule">
<!-- these parameters will force to create inputs/outputs of module -->
<NumInputs value="4"/>
- <NumOutputs value="1"/>
+ <NumOutputs value="2"/>
<InputPort name="Input0" url="hadaq://host:50084" urlopt1="" thread="inp2thrd"/>
<InputPort name="Input1" url="hadaq://host:50061" urlopt1="" thread="inp1thrd"/>
<!-- <InputPort name="Input3" url="hadaq://host:10104" urlopt1="trb=0x8030&tdc=[0x3030,0x3031,0x3032,0x3033]&dummy"/> -->
<!-- <InputPort name="Input4" url="hadaq://host:10105" urlopt1="trb=0x8040&tdc=[0x3040,0x3041,0x3042,0x3043]&dummy"/> -->
- <InputPort name="Input*" queue="30" urlopt="udpbuf=20000&mtu=64512&flush=2.0&observer=false&debug"/>
+ <InputPort name="Input*" queue="30" urlopt="udpbuf=200000&mtu=64512&flush=2.0&observer=false&debug"/>
<ExtraDebug value="false"/>
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
use warnings;
### Change THIS!
-my $required_endpoints = 20;
+my $required_endpoints = 16;
//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