From 4f439b0721f207f605b76e7013cb25ec81314b4b Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Fri, 21 Dec 2018 07:44:50 +0000 Subject: [PATCH] Support different GLOBAL_SP per polarization. --- .../commissioning/tests/start_wg_at_bsn.sh | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/applications/apertif/commissioning/tests/start_wg_at_bsn.sh b/applications/apertif/commissioning/tests/start_wg_at_bsn.sh index 9b4b410ae6..947969d4dd 100644 --- a/applications/apertif/commissioning/tests/start_wg_at_bsn.sh +++ b/applications/apertif/commissioning/tests/start_wg_at_bsn.sh @@ -62,21 +62,31 @@ WG_CHAN=32 # channel in subband 0..63, where 32 is at center WG_CHAN_FRACTION=0.0 # channel fraction 0.0 is at center of channel WG_PHASE=0 -POL=0 -GLOBAL_SP=56 # SP 56 is at center of PAF and connected via --unb 3 --bn 2 --sp 0 +POLS=0 # 0= X, 1 = Y, 0,1 = X,Y # Derived constants -if [ "$POL" == "0" ]; then - UNBS='0:3' +if [ "$POLS" == "0" ]; then + GLOBAL_SP_X=56 # SP 56 is at center of PAF and connected via --unb 3 --bn 2 --sp 0 +elif [ "$POLS" == "1" ]; then + GLOBAL_SP_Y=56 # SP 56 is at center of PAF and connected via --unb 3 --bn 2 --sp 0 else - UNBS='4:7' + GLOBAL_SP_X=56 + GLOBAL_SP_Y=56 fi + # Setup all WG at dish to ampl = 0 for all SP and both pol python $UPE/peripherals/pi_apertif_system.py --unb 0:7 --bn 0:3 --sp 0:3 --pol 0,1 --cmd 20 -v 5 --globalsp 0:63 --sub 0 --chan 32 --ampl 0 --phs 0 # Setup WG_AMPL for one GLOBAL_SP and one POL -python $UPE/peripherals/pi_apertif_system.py --unb 0:3 --bn 0:3 --sp 0:3 --pol $POL --cmd 20 -v 5 --globalsp $GLOBAL_SP --sub $WG_SUB --chan $WG_CHAN --ampl $WG_AMPL --chanfraction $WG_CHAN_FRACTION --phs $WG_PHASE +if [ "$POLS" == "0" ]; then + python $UPE/peripherals/pi_apertif_system.py --unb 0:3 --bn 0:3 --sp 0:3 --pol 0 --cmd 20 -v 5 --globalsp $GLOBAL_SP_X --sub $WG_SUB --chan $WG_CHAN --ampl $WG_AMPL --chanfraction $WG_CHAN_FRACTION --phs $WG_PHASE +elif [ "$POLS" == "1" ]; then + python $UPE/peripherals/pi_apertif_system.py --unb 4:7 --bn 0:3 --sp 0:3 --pol 1 --cmd 20 -v 5 --globalsp $GLOBAL_SP_Y --sub $WG_SUB --chan $WG_CHAN --ampl $WG_AMPL --chanfraction $WG_CHAN_FRACTION --phs $WG_PHASE +else: + python $UPE/peripherals/pi_apertif_system.py --unb 0:3 --bn 0:3 --sp 0:3 --pol 0 --cmd 20 -v 5 --globalsp $GLOBAL_SP_X --sub $WG_SUB --chan $WG_CHAN --ampl $WG_AMPL --chanfraction $WG_CHAN_FRACTION --phs $WG_PHASE + python $UPE/peripherals/pi_apertif_system.py --unb 4:7 --bn 0:3 --sp 0:3 --pol 1 --cmd 20 -v 5 --globalsp $GLOBAL_SP_Y --sub $WG_SUB --chan $WG_CHAN --ampl $WG_AMPL --chanfraction $WG_CHAN_FRACTION --phs $WG_PHASE +fi # Start WG at scheduled BSN in future python $UPE/peripherals/util_diag_wg_wideband.py --unb 0:7 --bn 0:3 --sp 0:3 -v 5 -n 1 --bsn $SCHEDULED_BSN -- GitLab