diff --git a/applications/apertif/commissioning/tests/start_wg_at_bsn.sh b/applications/apertif/commissioning/tests/start_wg_at_bsn.sh index 0acbf9fcba0a19231d8149696a253f75074664e4..eff99e19f76ded42673caf424de6b1f35cb9f268 100644 --- a/applications/apertif/commissioning/tests/start_wg_at_bsn.sh +++ b/applications/apertif/commissioning/tests/start_wg_at_bsn.sh @@ -22,21 +22,36 @@ # Author: Eric Kooistra # Purpose: Start WG synchronously at multiple dishes # Usage: -# . First use util_bsn_source.py on a dish to read the current BSN +# +# At ccu-corr. +# +# Edit this script to set the desired WG amplitude and frequency via subband, channel +# +# First use util_bsn_source.py on a dish to read the <current BSN> at sync +# +# ssh lcu-rtc -X "python $UPE/peripherals/util_bsn_source.py --unb 0 --bn 0 -n 7" +# +# The BSN increments by 800000 every 1.024 sec, so e.g. start WG 30 sync periods of 1.024s from now: # -# ccu-corr> ssh lcu-rtc -X "python $UPE/peripherals/util_bsn_source.py --unb 0 --bn 0 -n 7" # read current BSN @ sync +# Calcuclate <start BSN> = <current BSN> + 30 * 800000 # -# . The BSN increments by 800000 every 1.024 sec, so e.g. start WG about 30 sec from now: -# start BSN = current BSN + 30 * 800000 -# . Then start the WG at all dishes using: +# To start the WG on a single dish use: +# +# ssh lcu-rtc -X "start_wg_at_bsn.sh <start BSN>" +# +# To start the WG at all dishes use: # -# ccu-corr> python tests/run_command_on_lcus.py --tel 2,3 -s 'start_wg_at_bsn.sh <start BSN>' +# python tests/run_command_on_lcus.py --tel 2,3 -s '$RADIOHDL/applications/apertif/commissioning/tests/start_wg_at_bsn.sh <start BSN>' # +# Read SST to check that WG is active +# +# ssh lcu-rtc -X "python $UPE/peripherals/pi_apertif_system.py --unb 0:7 --bn 0:3 --sp 0:3 --cmd 10 -v 5 --useplot" # User parameters SCHEDULED_BSN=$1 WG_AMPL=10 + WG_SUB=64 # subband 64 + n*24 arrives at central UniBoard n 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 @@ -56,7 +71,7 @@ fi 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 +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 # 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 3 -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