From: c.wendisch Date: Thu, 1 Sep 2022 15:04:09 +0000 (+0200) Subject: added threshold set script and added more baselines and MBO serials X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=2216eb498375b439b25e02d28181be5c502e76ad;p=hades_mdc_settings.git added threshold set script and added more baselines and MBO serials --- diff --git a/scripts/pasttrec_set_threshold.pl b/scripts/pasttrec_set_threshold.pl new file mode 100755 index 0000000..70e92b7 --- /dev/null +++ b/scripts/pasttrec_set_threshold.pl @@ -0,0 +1,15 @@ +#!/usr/bin/perl -w +use warnings; +use HADES::TrbNet; +use Time::HiRes; + +my $threshold = $ARGV[0]; + +trb_init_ports() or die trb_strerror(); +trb_init_ports() or die trb_strerror(); + +foreach my $pt (0..3) { + trb_register_write(0xfe91,0xa200+($pt << 4)+3,0x50300+hex($threshold)); + } + +printf(" Threshold %i set to all available PASTTRECs. \n", $threshold);