From 09559154bc9382c69d81619d83f1924bd8cf3713 Mon Sep 17 00:00:00 2001 From: Menno Norden <norden@astron.nl> Date: Mon, 28 Sep 2015 07:13:07 +0000 Subject: [PATCH] Task #8522: Script to check LBA polarity ILT station --- .gitattributes | 1 + LCU/StationTest/polaritycheck-lba-int.sh | 46 ++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 LCU/StationTest/polaritycheck-lba-int.sh diff --git a/.gitattributes b/.gitattributes index 2a543afb4a9..f1039bc49d6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2662,6 +2662,7 @@ LCU/StationTest/modules/rsp.py eol=lf LCU/StationTest/modules/smbus.py eol=lf LCU/StationTest/modules/testcase.py eol=lf LCU/StationTest/modules/testlog.py eol=lf +LCU/StationTest/polaritycheck-lba-int.sh -text LCU/StationTest/power_ctrl.py eol=lf LCU/StationTest/pps.py eol=lf LCU/StationTest/pps2.py eol=lf diff --git a/LCU/StationTest/polaritycheck-lba-int.sh b/LCU/StationTest/polaritycheck-lba-int.sh new file mode 100644 index 00000000000..26026b316a0 --- /dev/null +++ b/LCU/StationTest/polaritycheck-lba-int.sh @@ -0,0 +1,46 @@ +#!/bin/bash +# This script can be used to check all X and Y dipoles on international station +# This makes it easier to walk through the field in a more logical way +# Version 1.0; 7-8-2015; M.J.Norden + +#ANTENNAS="12 36 85 70 83 63 13 14 15 55 37 39 38 44 46 93 76 65 90 88 17 16 95 64 74 67 72 60 45 47 61 94 26 24 25 0 2 1 3 62 80 19 18 82 73 48 4 7 6 86 87 66 28 29 59 31 30 49 77 20 84 53 22 23 21 57 52 91 27 68 69 58 9 10 11 8 76 56 71 40 42 41 43 79 89 92 32 33 35 34 54 75 51 81 5 50" + +#Here you can select a group of 24 antennas +ANTENNAS="12 36 85 70 83 63 13 14 15 55 37 39 38 44 46 93 76 65 90 88 17 16 95 64" +#ANTENNAS="74 67 72 60 45 47 61 94 26 24 25 0 2 1 3 62 80 19 18 82 73 48 4 7" +#ANTENNAS="6 86 87 66 28 29 59 31 30 49 77 20 84 53 22 23 21 57 52 91 27 68 69 58" +#ANTENNAS="9 10 11 8 76 56 71 40 42 41 43 79 89 92 32 33 35 34 54 75 51 81 5 50" + + + + +echo "[ ----------- Select next LBA antenna ------------ ]" +echo "[ press any key to select next LBA antenna ]" +echo "[ automatic LBA antennas power on ]" + +rspctl --rcumode=3 +sleep 1 +rspctl --rcuenable=1 +sleep 1 + +counter=0 + +for idx in `echo $ANTENNAS` + do + let counter+=1 + let "rcux = $idx*2" + let "rcuy = $idx*2+1" + + echo " Antenna is " $idx + echo " " $counter +# echo " RCU x is " $rcux +# echo " RCU y is " $rcuy + + rspctl --stati --sel=$rcux,$rcuy & + + # wait until key is pressed and kill gnuplot screen + read -n 1 -s var_key + PID=$! + kill $PID + + done -- GitLab