Skip to content
Snippets Groups Projects
Commit d8eec3ea authored by gekobs's avatar gekobs
Browse files

autopilot changes for SPS running

parent 13076505
No related branches found
No related tags found
1 merge request!122SPS test beam
Pipeline #7416233 passed
......@@ -23,16 +23,19 @@ powerMode=$9 # I1 (high) to I4 (low)
isMulti=${10}
run_number=`cat ../ETROC2_Test_Stand/ScopeHandler/Lecroy/Acquisition/next_run_number.txt`
echo "Starting configuration for $run_number on KCU . Turn beam OFF!!"
python3 telescope.py --configuration cern_test --kcu 192.168.0.10 --offset $3 --delay 32 # --reuse_thresholds
#python3 poke_board.py --configuration modulev1 --etrocs 0 --kcu 192.168.0.10 --dark_mode --mask telescope_config_data/cern_test_2024-05-13-20-07-26/noise_width_module_106_etroc_2.yaml
python3 poke_board.py --configuration modulev1 --etrocs 0 --kcu 192.168.0.10 --dark_mode
if [ "$isTrack" = true ]
then
echo "You are starting a telescope run. Have you entered the run number $run_number on telescope? And turn the beam OFF"
echo "You are starting a telescope run. Have you entered the run number $run_number on telescope? And turn BEAM ON now"
read dummy
fi
python3 telescope.py --kcu 192.168.0.10 --offset $3 --delay 32
python3 poke_board.py --kcu 192.168.0.10 --dark_mode
echo "Turn the beam on now!"
for i in $(seq 1 $1)
do
......@@ -41,10 +44,11 @@ do
echo "___________________________________ "$i
run_number=`cat ../ETROC2_Test_Stand/ScopeHandler/Lecroy/Acquisition/next_run_number.txt`
echo "Run number: $run_number"
python3 poke_board.py --kcu 192.168.0.10 --rb 2 --bitslip
python3 poke_board.py --kcu 192.168.0.10 --rb 1 --bitslip
# python3 poke_board.py --configuration modulev0b --etrocs 0 --kcu 192.168.0.10 --rb 1 --bitslip
# python3 poke_board.py --configuration modulev1 --etrocs 2 --kcu 192.168.0.10 --rb 2 --bitslip
# python3 poke_board.py --configuration modulev1 --etrocs 2 --kcu 192.168.0.10 --rb 1 --bitslip
./autopilot.sh $n_events $offset
temperature=$(python3 poke_board.py --kcu 192.168.0.10 --temperature)
temperature=$(python3 poke_board.py --configuration modulev1 --etrocs 0 --rbs 0 --modules 0 --kcu 192.168.0.10 --temperature)
sleep 7s
kcu=`cat ./running_ETROC_acquisition.txt`
scope=`cat ../ETROC2_Test_Stand/ScopeHandler/Lecroy/Acquisition/running_acquisition.txt`
......@@ -70,6 +74,6 @@ do
test_successful=`test "$merging_dir/run_$run_number.root"`
printf "$run_number,$bias_V,$offset,$n_events,$board_number,$bond,$energy,`date -u`,$isTrack,$powerMode,$temperature, $isMulti \n">>./run_log_DESY_March2024.csv
printf "$run_number,$bias_V,$offset,$n_events,$board_number,$bond,$energy,`date -u`,$isTrack,$powerMode,$temperature, $isMulti \n">>./run_log_SPS_May2024.csv
done
......@@ -4,11 +4,13 @@ echo $index
#ipython3 telescope.py -- --kcu 192.168.0.10 --offset $2 --delay 32
echo -n "True" > running_ETROC_acquisition.txt
(python3 daq.py --l1a_rate 0 --ext_l1a --kcu 192.168.0.10 --rb 0,1,2 --run $index --lock "/home/etl/Test_Stand/ETROC2_Test_Stand/ScopeHandler/Lecroy/Acquisition/running_acquisition.txt") &
(python3 daq.py --l1a_rate 0 --ext_l1a --kcu 192.168.0.10 --rb 0 --run $index --lock "/home/etl/Test_Stand/ETROC2_Test_Stand/ScopeHandler/Lecroy/Acquisition/running_acquisition.txt") &
(sleep 15
python3 /home/etl/Test_Stand/ETROC2_Test_Stand/ScopeHandler/Lecroy/Acquisition/acquisition_wrapper.py $1)
python3 data_dumper.py --input ${index} --rbs 0,1,2 --skip_trigger_check
python3 root_dumper.py --input ${index}_rb0
python3 /home/etl/Test_Stand/ETROC2_Test_Stand/ScopeHandler/Lecroy/Acquisition/acquisition_wrapper.py --nevents $1)
python3 data_dumper.py --input ${index} --rbs 0 --skip_trigger_check
# remember: 0,1,2
#python3 root_dumper.py --input ${index} #_rb0 # Run in other shell with root configured
echo -n "False" > running_ETROC_acquisition.txt
echo -n "True" > merging.txt
echo -n "True" > /home/etl/Test_Stand/ETROC2_Test_Stand/ScopeHandler/Lecroy/Acquisition/merging.txt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment