From b36663f3289aabb45f5d459cde4c5584c39535c8 Mon Sep 17 00:00:00 2001 From: "hadaq@countinghouse" Date: Thu, 28 Aug 2014 17:30:39 +0200 Subject: [PATCH] status, mt --- pion/config/nxyter/trb3_setup.sh | 71 -------------------------------- 1 file changed, 71 deletions(-) delete mode 100755 pion/config/nxyter/trb3_setup.sh diff --git a/pion/config/nxyter/trb3_setup.sh b/pion/config/nxyter/trb3_setup.sh deleted file mode 100755 index d1d53fb..0000000 --- a/pion/config/nxyter/trb3_setup.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/sh - -echo "Loading nxyter read-out configuration" - -case $1 in - 0x38*) - board=$1 - ;; - *) - echo "Wrong board!" - exit - ;; -esac - -# i2c_sm_reset -trbcmd w $board 0x8100 0x01 -# i2c_reg_reset_start -trbcmd w $board 0x8101 0x01 - -# Write nxsetup.dat to memory and transfer to nx-i2c-registers -echo "Using nxsetup_$board.dat" -trbcmd wm $board 0x8200 0 nxsetup_${board}.dat - -# Trigger Validate -trbcmd w $board 0x8400 0 # set readout mode -trbcmd w $board 0x8401 0 # window offset -trbcmd w $board 0x8402 0x0064 # window width 400ns - -# Data Validate -trbcmd w $board 0x8120 1 # reset all counters - -# CTS Delays and ADC_OFF -CTS_DELAY=0 -ADC_OFF=0 -case $board in - 0x3800) - CTS_DELAY=210 - ADC_OFF=0 - ;; - - 0x3801) - CTS_DELAY=210 - ADC_OFF=0 - ;; - - 0x3810) - CTS_DELAY=175 - ADC_OFF=0 - ;; - - 0x3811) - CTS_DELAY=175 - ADC_OFF=0 - ;; - - *) - echo "Wrong board!" - ;; -esac - -trbcmd w $board 0x8403 $CTS_DELAY -if [ $ADC_OFF -eq 1 ] ; then - trbcmd w $board 0x8504 0x80000000 -fi - -# TS Cut Level2 140 220 [ns] -trbcmd w $board 0x8420 0x008c00dc - -# Turn off Status Trigger -trbcmd w $board 0x8166 2 - -- 2.43.0