From 855c8f93f123f6f5132b644381de120fa0cfc06b Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Thu, 20 Dec 2018 12:13:23 +0000 Subject: [PATCH] Tested script and used it to start WG on two dishes. --- .../commissioning/tests/start_wg_at_bsn.sh | 31 ++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/applications/apertif/commissioning/tests/start_wg_at_bsn.sh b/applications/apertif/commissioning/tests/start_wg_at_bsn.sh index 0acbf9fcba..eff99e19f7 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 -- GitLab