Skip to content
Snippets Groups Projects
Commit 4f439b07 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Support different GLOBAL_SP per polarization.

parent dff95af2
No related branches found
No related tags found
No related merge requests found
...@@ -62,21 +62,31 @@ WG_CHAN=32 # channel in subband 0..63, where 32 is at center ...@@ -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_CHAN_FRACTION=0.0 # channel fraction 0.0 is at center of channel
WG_PHASE=0 WG_PHASE=0
POL=0 POLS=0 # 0= X, 1 = Y, 0,1 = X,Y
GLOBAL_SP=56 # SP 56 is at center of PAF and connected via --unb 3 --bn 2 --sp 0
# Derived constants # Derived constants
if [ "$POL" == "0" ]; then if [ "$POLS" == "0" ]; then
UNBS='0:3' 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 else
UNBS='4:7' GLOBAL_SP_X=56
GLOBAL_SP_Y=56
fi fi
# Setup all WG at dish to ampl = 0 for all SP and both pol # 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 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 # 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 # 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 python $UPE/peripherals/util_diag_wg_wideband.py --unb 0:7 --bn 0:3 --sp 0:3 -v 5 -n 1 --bsn $SCHEDULED_BSN
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment